Bandwidth control method, device, computer equipment, readable storage medium and program product

Through the method of dynamically dividing the bandwidth range and generating speed limit information, the problem of low network resource utilization caused by bandwidth control strategies in the prior art is solved, and more efficient bandwidth management and resource utilization are achieved.

CN119316294BActive Publication Date: 2025-04-22CHINA TELECOM CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411858156.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-04-22
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

The bandwidth control method in the prior art is based on a fixed speed limiting strategy, resulting in low utilization of network resources and inability to effectively deal with the pressure on the source station by instantaneous large number of requests.

Method used

By reading the speed limit domain name configuration information, the bandwidth range of the target domain name is divided into the pre-control area and the controlled area, the target speed limit information is generated based on the current operating indicators, and sent to the edge host, and the gear speed limit strategy or adaptive speed limit strategy is used to dynamically adjust the bandwidth.

Benefits of technology

It improves the utilization rate of network resources, prevents the phenomenon of bandwidth fluctuations, achieves stable bandwidth control, alleviates the pressure on the source station, and ensures user experience and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316294B_ABST
    Figure CN119316294B_ABST
Patent Text Reader

Abstract

The present application relates to a bandwidth control method, device, computer equipment, readable storage medium and program product. The method includes: reading speed limit domain name configuration information; the speed limit domain name configuration information includes configuration information required for implementing bandwidth control for the target domain name; according to the speed limit domain name configuration information, querying the current operating indicators of the target domain name on the corresponding edge host; the operating indicators include at least one indicator of the upstream bandwidth, downstream bandwidth, query rate per second data and current transmission speed corresponding to the target domain name; according to the bandwidth control strategy, generating target speed limit information according to the current operating indicators, and sending the target speed limit information to the edge host; the bandwidth control strategy includes at least one of the gear speed limit strategy or the adaptive speed limit strategy; the target speed limit information includes pre-control speed limit information for the pre-control area or controlled speed limit information for the controlled area. The use of this method can improve the utilization rate of network resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a bandwidth control method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] In the application acceleration system, each user request needs to go back to the source station to obtain resources through the edge gateway according to the optimal path set by the detection route. When a large number of requests are returned to the source at once, once the processing capacity of the source station is exceeded, the performance of the source station may become very poor, and even cause abnormal accidents such as downtime of the source station, which not only reduces the user experience, but also causes huge economic losses.

[0003] Bandwidth control strategy is an effective management method. However, bandwidth control methods in related technologies are usually based on fixed speed limit strategies, resulting in low utilization of network resources.

[0004] Therefore, the bandwidth control method in the related art has the problem of low network resource utilization. Summary of the invention

[0005] Based on this, it is necessary to provide a bandwidth control method, device, computer equipment, computer-readable storage medium and computer program product that can improve network resource utilization in response to the above technical problems.

[0006] In a first aspect, the present application provides a bandwidth control method, comprising:

[0007] Reading speed limit domain name configuration information; the speed limit domain name configuration information includes configuration information required for implementing bandwidth control for the target domain name; the bandwidth range of the target domain name includes a pre-controlled area and a controlled area;

[0008] According to the speed-limited domain name configuration information, query the current operating index of the target domain name on the corresponding edge host; the operating index includes at least one of the upstream bandwidth, downstream bandwidth, query rate data per second and current transmission speed corresponding to the target domain name;

[0009] According to the bandwidth control strategy, target speed limit information is generated according to the current operating indicators, and the target speed limit information is sent to the edge host; the bandwidth control strategy includes at least one of a gear speed limit strategy or an adaptive speed limit strategy; the target speed limit information includes pre-control speed limit information for the pre-control area or controlled speed limit information for the controlled area.

[0010] In one embodiment, the configuration information includes a threshold ratio and a speed limit gear parameter of the pre-control area, and querying the current operating index of the target domain name on the corresponding edge host according to the speed limit domain name configuration information includes:

[0011] Determining a bandwidth threshold of the pre-control area at the lowest speed limit gear according to the threshold ratio of the pre-control area and the speed limit gear parameter;

[0012] The total bandwidth corresponding to the target domain name is periodically queried, and when the total bandwidth corresponding to the target domain name is greater than the bandwidth threshold of the pre-control area under the lowest speed limit gear, the current operation index of the target domain name on the corresponding edge host is queried.

[0013] In one embodiment, generating target speed limit information according to the current operation index according to the bandwidth control strategy, and sending the target speed limit information to the edge host includes:

[0014] Determine the current total bandwidth corresponding to the target domain name according to the current operation indicator;

[0015] In the case where the current total bandwidth is greater than the preset gear bandwidth corresponding to the target domain name, generating the controlled speed limit information according to the bandwidth control strategy, and sending the controlled speed limit information to the edge host;

[0016] Otherwise, the pre-control speed limit information is generated according to the bandwidth control strategy, and the pre-control speed limit information is sent to the edge host.

[0017] In one embodiment, generating target speed limit information according to the current operation index according to the bandwidth control strategy includes:

[0018] According to the preset ratio in the gear speed limit strategy, dynamically determine the basic speed limit information corresponding to the edge host; the basic speed limit information includes at least one of the uplink speed limit value, the downlink speed limit value, the query rate upper limit value per second, or the query rate lower limit value per second;

[0019] The target speed limit information is determined according to the basic speed limit information corresponding to the edge host.

[0020] In one embodiment, determining the target speed limit information according to the basic speed limit information corresponding to the edge host includes:

[0021] When the adaptive rate limit strategy is enabled, determining whether the current request is a first request;

[0022] If yes, the basic speed limit information is used as the target speed limit information.

[0023] In one of the embodiments, when the current request is not the first request and the current total bandwidth corresponding to the target domain name is greater than the last total bandwidth corresponding to the target domain name, determining the target speed limit information according to the basic speed limit information corresponding to the edge host includes:

[0024] According to the adaptive speed limit strategy, dynamically adjust the uplink speed limit value and the downlink speed limit value;

[0025] When the adjusted uplink speed limit value and the adjusted downlink speed limit value are less than the minimum speed limit value in the adaptive speed limit strategy, the target speed limit information is generated according to the minimum speed limit value.

[0026] In one of the embodiments, when the adjusted uplink speed limit value and the adjusted downlink speed limit value are greater than the minimum speed limit value, the method further includes:

[0027] The target speed limit information is generated according to the adjusted uplink speed limit value and the adjusted downlink speed limit value.

[0028] In a second aspect, the present application further provides a bandwidth control device, including:

[0029] A reading module, used for reading speed limit domain name configuration information; the speed limit domain name configuration information includes configuration information required for implementing bandwidth control for a target domain name; the bandwidth range of the target domain name includes a pre-controlled area and a controlled area;

[0030] A query module, used to query the current operating index of the target domain name on the corresponding edge host according to the speed limit domain name configuration information; the operating index includes at least one of the upstream bandwidth, downstream bandwidth, query rate data per second and current transmission speed corresponding to the target domain name;

[0031] A speed limit module is used to generate target speed limit information according to the current operating index in accordance with the bandwidth control strategy, and send the target speed limit information to the edge host; the bandwidth control strategy includes at least one of a gear speed limit strategy or an adaptive speed limit strategy; the target speed limit information includes pre-control speed limit information for the pre-control area or controlled speed limit information for the controlled area.

[0032] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.

[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0034] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0035] The above-mentioned bandwidth control method, device, computer equipment, computer-readable storage medium and computer program product read the speed limit domain name configuration information; the speed limit domain name configuration information includes the configuration information required to implement bandwidth control for the target domain name; the bandwidth range of the target domain name includes the pre-control area and the controlled area; query the target domain name's current operating indicators on the corresponding edge host; the operating indicators include at least one of the uplink bandwidth, downlink bandwidth, query rate per second data and current transmission speed corresponding to the target domain name; according to the bandwidth control strategy, generate the target speed limit information according to the current operating indicators, and send the target speed limit information to the edge host; the bandwidth control strategy includes at least one of the gear speed limit strategy or the adaptive speed limit strategy; the target speed limit information includes the pre-control speed limit information for the pre-control area or the controlled speed limit information for the controlled area.

[0036] In this way, by reading the speed limit domain name configuration information; the speed limit domain name configuration information includes the configuration information required to implement bandwidth control for the target domain name, the bandwidth range of the target domain name can be divided into a pre-control area and a controlled area, based on the speed limit domain name configuration information, query the current operating indicators of the target domain name on the corresponding edge host, according to the bandwidth control strategy, generate the target speed limit information according to the current operating indicators, and send the target speed limit information to the edge host; wherein the bandwidth control strategy includes at least one of the gear speed limit strategy or the adaptive speed limit strategy; wherein the target speed limit information includes the pre-control speed limit information for the pre-control area or the controlled speed limit information for the controlled area, by sending different speed limit information in the pre-control area and the controlled area, the bandwidth is prevented from fluctuating, and the effect of smoothly controlling the bandwidth is achieved, thereby, the actual total amount of user usage can be controlled not to exceed the total amount of restricted bandwidth according to the target speed limit information, prevent individual users from occupying too much bandwidth, allow as many users as possible to access, realize intelligent speed limit of network traffic, relieve the pressure of the source station, and improve the utilization rate of network resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A schematic diagram of a bandwidth control method in an embodiment;

[0039] Figure 2 is a flow chart of another bandwidth control method in one embodiment;

[0040] Figure 3 A diagram of an application environment of a bandwidth control method in an embodiment;

[0041] Figure 4 is a flow chart of a bandwidth control method in another embodiment;

[0042] Figure 5 is a structural block diagram of a bandwidth control device in one embodiment;

[0043] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0046] In one embodiment, Figure 1As shown, a bandwidth control method is provided. This embodiment uses the method applied to a speed limit center as an example. The speed limit center can be a server, and the server can be implemented as an independent server or a server cluster composed of multiple servers. In this embodiment, the method includes the following steps:

[0047] Step S110, read the speed limit domain name configuration information.

[0048] The speed-limited domain name configuration information includes configuration information required for implementing bandwidth control on the target domain name.

[0049] The target domain name may be a domain name that requires real-time bandwidth control.

[0050] The bandwidth range of the target domain name includes a pre-controlled area and a controlled area.

[0051] The bandwidth range of the target domain name also includes a normal zone with no speed limit.

[0052] Among them, the pre-control area is used to receive pre-control instructions; the controlled area is used to receive controlled instructions.

[0053] The division of the normal area, the pre-control area and the controlled area can be determined according to the threshold ratio of the pre-control area corresponding to the target domain name and the corresponding restricted bandwidth.

[0054] The bandwidth threshold can be determined according to the threshold ratio of the restricted bandwidth and the pre-control area. The area less than the bandwidth threshold is the normal area, the area between the bandwidth threshold and the restricted bandwidth is the pre-control area, and the area exceeding the restricted bandwidth is the controlled area.

[0055] For example, the configuration file will configure the threshold ratio of the pre-control area.

[0056] Assume that the limited bandwidth is 100G and the threshold ratio of the pre-control area is 80%, then the bandwidth threshold is 80G, where:

[0057] Normal area: Bandwidth range (0-80G) does not perform any processing on bandwidth.

[0058] Pre-control area: Set an upper limit for the bandwidth range (80G-100G) to control the number of requests per second. Since the upper limit has not been reached at this time, it will not have any impact on user requests. It only prevents sudden requests from causing a sharp increase in bandwidth.

[0059] Controlled area: bandwidth range (greater than 100G) At this time, the actual bandwidth has exceeded the control value and the bandwidth needs to be reduced.

[0060] In the specific implementation, Figure 2As shown, a flow chart of another bandwidth control method is provided, and the speed limit center can load the speed limit domain name file, read and parse the configuration information in the speed limit domain name file, and obtain the speed limit domain name configuration information. The speed limit domain name configuration information may include but is not limited to at least one of the speed limit type, the pre-control area threshold ratio, the speed limit gear parameter, the speed limit gear status code, and the adaptive speed limit parameter.

[0061] The speed limit domain name file is a file that stores and manages configuration information related to bandwidth speed limit.

[0062] The speed limit domain name configuration information refers to various parameters and settings required for implementing bandwidth control on the target domain name in the speed limit domain name file.

[0063] The speed limit type is used to specify the speed limit mode applicable to the target domain name, such as gear speed limit or adaptive speed limit.

[0064] The threshold ratio of the pre-control area is used to set the usage ratio of the bandwidth in the pre-control area to ensure that the bandwidth control strategy can be triggered when the traffic reaches a certain threshold.

[0065] The speed limit gear parameter is used to describe different speed limit gear settings of the bandwidth speed limit. For example, different speed limit gears correspond to different speed limit values ​​and processing rules.

[0066] The speed limit gear status code is used to indicate the status of the current speed limit gear, and is usually used to characterize the level of the current bandwidth restriction.

[0067] The adaptive speed limit parameters may include rules and conditions related to dynamically adjusting the speed limit to adapt to real-time traffic changes, and are used to specify how to adjust the bandwidth limit according to the real-time network status to achieve dynamic speed limit.

[0068] Step S120: query the current operation index of the target domain name on the corresponding edge host according to the speed limit domain name configuration information.

[0069] The operation indicators include at least one of the upstream bandwidth, downstream bandwidth, query rate data per second (QPS (Queries Per Second)) and current transmission speed corresponding to the target domain name.

[0070] In a specific implementation, the speed limit center can query the current operating indicators of the target domain name on the corresponding edge host in the monitoring center according to the speed limit domain name configuration information.

[0071] In some embodiments, the configuration information includes a threshold ratio and a speed limit gear parameter of the pre-control zone. According to the speed limit domain name configuration information, the target domain name's current operating indicators on the corresponding edge host are queried, including: determining the bandwidth threshold of the pre-control zone at the lowest speed limit gear according to the threshold ratio and the speed limit gear parameter of the pre-control zone; periodically querying the total bandwidth corresponding to the target domain name, and when the total bandwidth corresponding to the target domain name is greater than the bandwidth threshold of the pre-control zone at the lowest speed limit gear, querying the target domain name's current operating indicators on the corresponding edge host.

[0072] In the specific implementation, the speed limit center queries the current running indicators of the target domain name on the corresponding edge host according to the speed limit domain name configuration information, such as Figure 2 As shown, the speed limit center can determine the bandwidth threshold of the pre-control area at the lowest speed limit gear according to the threshold ratio of the pre-control area and the speed limit gear parameters, and periodically query the total bandwidth (including uplink bandwidth and downlink bandwidth) and speed and other indicators corresponding to the target domain name to the monitoring center according to the target domain name. If the total bandwidth corresponding to the target domain name is less than the bandwidth threshold of the pre-control area at the lowest speed limit gear, the bandwidth control requirement is not met and there is no need to implement the bandwidth control strategy.

[0073] If the total bandwidth corresponding to the target domain name is greater than the bandwidth threshold of the pre-control area at the lowest speed limit gear at this time, the speed limit requirement is met and the bandwidth control strategy needs to be implemented; then, the speed limit center continues to query the monitoring center for the current operating indicators of the target domain name on the corresponding edge host, and returns the upstream bandwidth, downstream bandwidth, QPS data and current speed indicators at the domain name and IP granularity, and stores its data indicators according to the domain name and IP granularity.

[0074] Step S130: Generate target speed limit information according to the bandwidth control strategy and the current operation index, and send the target speed limit information to the edge host.

[0075] The bandwidth control strategy includes at least one of a gear speed limit strategy or an adaptive speed limit strategy.

[0076] The target speed limit information includes pre-control speed limit information for the pre-control area or controlled speed limit information for the controlled area.

[0077] In a specific implementation, the speed limit center can generate target speed limit information according to the bandwidth control strategy and the current operating indicators, and send the target speed limit information to the edge host.

[0078] In order to facilitate the understanding of those skilled in the art, Figure 3 An application environment diagram of a bandwidth control method is provided. Figure 3As shown, the speed limit center can query the current operating indicators of the target domain name on the corresponding edge host in the CDN (Content Delivery Network) monitoring center, and periodically query the total bandwidth corresponding to the target domain name in the monitoring center according to the target domain name. The speed limit center generates the target speed limit information and sends it to the corresponding edge host (the speed-limited component).

[0079] In the above bandwidth control method, speed limit domain name configuration information is read; the speed limit domain name configuration information includes configuration information required for implementing bandwidth control for a target domain name; the bandwidth range of the target domain name includes a pre-control area and a controlled area; the current operating index of the target domain name on the corresponding edge host is queried; the operating index includes at least one of the upstream bandwidth, the downstream bandwidth, the query rate per second data and the current transmission speed corresponding to the target domain name; according to the bandwidth control strategy, the target speed limit information is generated according to the current operating index, and the target speed limit information is sent to the edge host; the bandwidth control strategy includes at least one of a gear speed limit strategy or an adaptive speed limit strategy; the target speed limit information includes the pre-control speed limit information for the pre-control area or the controlled speed limit information for the controlled area.

[0080] In this way, by reading the speed limit domain name configuration information; the speed limit domain name configuration information includes the configuration information required to implement bandwidth control for the target domain name, the bandwidth range of the target domain name can be divided into a pre-control area and a controlled area, based on the speed limit domain name configuration information, query the current operating indicators of the target domain name on the corresponding edge host, according to the bandwidth control strategy, generate the target speed limit information according to the current operating indicators, and send the target speed limit information to the edge host; wherein the bandwidth control strategy includes at least one of the gear speed limit strategy or the adaptive speed limit strategy; wherein the target speed limit information includes the pre-control speed limit information for the pre-control area or the controlled speed limit information for the controlled area, by sending different speed limit information in the pre-control area and the controlled area, the bandwidth is prevented from fluctuating, and the effect of smoothly controlling the bandwidth is achieved, thereby, the actual total amount of user usage can be controlled not to exceed the total amount of restricted bandwidth according to the target speed limit information, prevent individual users from occupying too much bandwidth, allow as many users as possible to access, realize intelligent speed limit of network traffic, relieve the pressure of the source station, and improve the utilization rate of network resources.

[0081] In one embodiment, according to the bandwidth control strategy, target speed limit information is generated according to the current operating indicators, and the target speed limit information is sent to the edge host, including: determining the current total bandwidth corresponding to the target domain name according to the current operating indicators; when the current total bandwidth is greater than the preset gear bandwidth corresponding to the target domain name, generating controlled speed limit information according to the bandwidth control strategy, and sending the controlled speed limit information to the edge host; otherwise, generating pre-controlled speed limit information according to the bandwidth control strategy, and sending the pre-controlled speed limit information to the edge host.

[0082] The controlled speed limit information may refer to the speed limit information for the controlled area.

[0083] The pre-control speed limit information may refer to the speed limit information for the pre-control area.

[0084] The preset gear bandwidth refers to the bandwidth of the highest speed limit gear in the speed limit domain name configuration information.

[0085] For example, if a speed limit gear is configured, the bandwidth of the speed limit gear refers to the preset gear bandwidth;

[0086] If multiple speed limit gears are configured, assuming that gears 1 and 2 are configured, the preset gear bandwidth refers to the gear bandwidth of gear 2. A controlled instruction will be generated only when the current total bandwidth is greater than the bandwidth of the highest speed limit gear, otherwise it is a pre-controlled instruction or no speed limit instruction is generated normally.

[0087] In the specific implementation, the speed limit center generates the target speed limit information according to the bandwidth control strategy and the current operation index, and sends the target speed limit information to the edge host. In other words, the current total bandwidth corresponding to the target domain name can be determined according to the uplink bandwidth and downlink bandwidth in the current operation index.

[0088] Then, if Figure 2 As shown, the speed limit center can determine whether the current total bandwidth corresponding to the target domain name is greater than the preset gear bandwidth corresponding to the target domain name. If the current total bandwidth is greater than the preset gear bandwidth corresponding to the target domain name, the controlled speed limit information is generated according to the bandwidth control strategy, and the controlled speed limit information is sent to the edge host; otherwise, the pre-controlled speed limit information is generated according to the bandwidth control strategy, and the pre-controlled speed limit information is sent to the edge host.

[0089] The technical solution of this embodiment determines the current total bandwidth corresponding to the target domain name according to the current operating indicators; when the current total bandwidth is greater than the preset gear bandwidth corresponding to the target domain name, the controlled speed limit information is generated according to the bandwidth control strategy, and the controlled speed limit information is sent to the edge host; otherwise, the pre-controlled speed limit information is generated according to the bandwidth control strategy, and the pre-controlled speed limit information is sent to the edge host. In this way, by sending different speed limit information in the pre-controlled area and the controlled area, the bandwidth is prevented from fluctuating, and the effect of smoothly controlling the bandwidth is achieved.

[0090] In one embodiment, according to the bandwidth control strategy, the target speed limit information is generated according to the current operating indicators, including: dynamically determining the basic speed limit information corresponding to the edge host according to the preset ratio in the gear speed limit strategy; the basic speed limit information includes at least one of the uplink speed limit value, the downlink speed limit value, the upper query rate per second, or the lower query rate per second; and determining the target speed limit information according to the basic speed limit information corresponding to the edge host.

[0091] The preset ratio may include at least one of an uplink bandwidth ratio, a downlink bandwidth ratio, a QPS upper limit ratio, and a QPS lower limit ratio.

[0092] In a specific implementation, the speed limit center can dynamically determine the basic speed limit information corresponding to the edge host according to the preset ratio in the gear speed limit strategy when generating the target speed limit information according to the current operating indicators in accordance with the bandwidth control strategy; the basic speed limit information includes at least one of the uplink speed limit value, the downlink speed limit value, the upper query rate per second, or the lower query rate per second; thereby determining the target speed limit information based on the basic speed limit information corresponding to the edge host.

[0093] In this way, by dynamically calculating the basic speed limit information, the speed limit center can reasonably allocate bandwidth according to real-time usage and ensure a balance between upstream and downstream traffic. This can avoid the waste of bandwidth resources and improve the overall utilization of the network.

[0094] In actual applications, in combination with the request QPS, a request QPS upper limit (query rate upper limit per second) is set in the pre-control area to prevent bandwidth jitter caused by sudden requests. A request QPS lower limit (query rate lower limit per second) is set in the controlled area to control the number of requests per second to not exceed this value. After exceeding this value, access is denied or 302 scheduling is performed to protect the system from overload and ensure service continuity and stability.

[0095] In one embodiment, if Figure 2 As shown, when it is determined that the current total bandwidth is not greater than the preset gear bandwidth corresponding to the target domain name, in the process of generating pre-control speed limit information according to the bandwidth control strategy, the speed limit center can generate a pre-control instruction when it is determined that the current total bandwidth is not greater than the preset gear bandwidth corresponding to the target domain name, and judge whether the current total bandwidth is greater than the bandwidth threshold of the pre-control area. If not, the basic speed limit information corresponding to the edge host is dynamically determined according to the preset ratio in the gear speed limit strategy, and the basic speed limit information corresponding to the edge host is used as the pre-control speed limit information for the pre-control area.

[0096] In this way, the speed limit parameter values ​​in the pre-control speed limit information (at least one of the uplink speed limit value, the downlink speed limit value, the upper query rate per second value, or the lower query rate per second value) can be used to generate a speed limit information table with domain name and IP granularity and sent to the corresponding edge host.

[0097] In one embodiment, the target speed limit information is determined according to the basic speed limit information corresponding to the edge host, including: when the adaptive speed limit strategy is enabled, determining whether the current request is the first request; if so, using the basic speed limit information as the target speed limit information.

[0098] In the specific implementation, the speed limit center can determine whether to enable the adaptive speed limit strategy when determining the target speed limit information based on the basic speed limit information corresponding to the edge host. If the adaptive speed limit strategy is not enabled, the basic speed limit information corresponding to the edge host is used as the target speed limit information, and the speed limit parameter values ​​in the target speed limit information (at least one of the uplink speed limit value, the downlink speed limit value, the upper query rate per second, or the lower query rate per second) are used to generate a speed limit information table with domain name and IP granularity, which is then sent to the corresponding edge host.

[0099] In practical applications, refer to Figure 2 In the process of generating pre-control speed limit information according to the bandwidth control strategy, when it is determined that the current total bandwidth is not greater than the preset gear bandwidth corresponding to the target domain name, the speed limit center can generate a pre-control instruction when it is determined that the current total bandwidth is not greater than the preset gear bandwidth corresponding to the target domain name, and determine whether the current total bandwidth is greater than the bandwidth threshold of the pre-control area. If so, determine whether to enable the adaptive speed limit strategy. If the adaptive speed limit strategy is not enabled, dynamically determine the basic speed limit information corresponding to the edge host according to the preset ratio in the gear speed limit strategy, and use the basic speed limit information corresponding to the edge host as the pre-control speed limit information for the pre-control area.

[0100] When it is determined that the current total bandwidth is greater than the preset gear bandwidth corresponding to the target domain name, in the process of generating controlled speed limit information according to the bandwidth control strategy, the speed limit center can determine whether to enable the adaptive speed limit strategy. If the adaptive speed limit strategy is not enabled, the basic speed limit information corresponding to the edge host is dynamically determined according to the preset ratio in the gear speed limit strategy, and the basic speed limit information corresponding to the edge host is used as the controlled speed limit information for the controlled area.

[0101] When the adaptive speed limit strategy is enabled, the speed limit center can determine whether the current request is the first request; if so, the basic speed limit information is used as the target speed limit information.

[0102] Specifically, when it is determined that the current total bandwidth is greater than the preset gear bandwidth corresponding to the target domain name, in the process of generating controlled speed limit information according to the bandwidth control strategy, the speed limit center can determine whether to turn on the adaptive speed limit strategy. When the adaptive speed limit strategy is turned on, the speed limit center can determine whether the current request is the first request; if so, the basic speed limit information is used as the controlled speed limit information.

[0103] When it is determined that the current total bandwidth is not greater than the preset gear bandwidth corresponding to the target domain name, in the process of generating pre-control speed limit information according to the bandwidth control strategy, the speed limit center can generate a pre-control instruction when it is determined that the current total bandwidth is not greater than the preset gear bandwidth corresponding to the target domain name, and determine whether the current total bandwidth is greater than the bandwidth threshold of the pre-control area. If so, determine whether to enable the adaptive speed limit strategy. If the adaptive speed limit strategy is enabled, the speed limit center can determine whether the current request is the first request; if so, use the basic speed limit information as the pre-control speed limit information.

[0104] In one of the embodiments, when the current request is not the first request and the current total bandwidth corresponding to the target domain name is greater than the previous total bandwidth corresponding to the target domain name, the target speed limit information is determined according to the basic speed limit information corresponding to the edge host, including: dynamically adjusting the uplink speed limit value and the downlink speed limit value according to the adaptive speed limit strategy; when the adjusted uplink speed limit value and the adjusted downlink speed limit value are less than the minimum speed limit value in the adaptive speed limit strategy, generating the target speed limit information according to the minimum speed limit value.

[0105] The last total bandwidth may be the total bandwidth corresponding to the target domain name obtained by the last query.

[0106] In the specific implementation, when the speed limit center determines whether the current request is the first request, after determining that the current request is not the first request, refer to Figure 2 The speed limit center can determine whether the current total bandwidth corresponding to the target domain name is greater than the last total bandwidth corresponding to the target domain name. If the current total bandwidth corresponding to the target domain name is less than the last total bandwidth corresponding to the target domain name, the current uplink transmission speed and downlink transmission speed of the target domain name are maintained.

[0107] When the current total bandwidth corresponding to the target domain name is greater than the previous total bandwidth corresponding to the target domain name, the uplink speed limit value and the downlink speed limit value can be dynamically adjusted according to the adaptive speed limit strategy; when the adjusted uplink speed limit value and the adjusted downlink speed limit value are less than the minimum speed limit value in the adaptive speed limit strategy, the target speed limit information is generated according to the minimum speed limit value. The speed limit parameter value (minimum speed limit value) in the target speed limit information is used to generate a speed limit information table of domain name and IP granularity, and sent to the corresponding edge host.

[0108] If the adjusted uplink speed limit value and the adjusted downlink speed limit value are greater than the minimum speed limit value, the target speed limit information is generated according to the adjusted uplink speed limit value and the adjusted downlink speed limit value. The speed limit parameter values ​​(adjusted uplink speed limit value and adjusted downlink speed limit value) in the target speed limit information are used to generate a speed limit information table with domain name and IP granularity, and sent to the corresponding edge host.

[0109] In this way, when the adaptive speed limit strategy is turned on, the bandwidth control strategy used to generate speed limit information can be adjusted according to whether it is the first request and whether the current total bandwidth is less than the previous total bandwidth. The bandwidth limitation strategy can be dynamically adjusted according to the actual situation of the network, and the speed limit value can be accurately calculated to achieve a smooth and imperceptible speed limit effect. The actual total usage is controlled not to exceed the total limited bandwidth, which helps users save costs, allows as many users as possible to access, and improves network resource utilization.

[0110] The bandwidth control strategy method proposed in this application supports two strategies: configuring gear speed limit and adaptive speed limit. Only by modifying the configuration, the effect of combining static speed limit and dynamic speed limit can be achieved, and intelligent speed limit of network traffic can be realized. The implementation method is simple and efficient, which can relieve the pressure of the source station, ensure the stability of the source station, improve the accuracy of the speed limit, maximize the processing capacity of the source station, and improve the utilization rate of network resources. Compared with the bandwidth limitation method in the related art, the bandwidth control method provided by this application has higher flexibility and intelligence, can better adapt to changes in the network environment, and meet the speed limit requirements of users in different scenarios.

[0111] In actual applications, different bandwidth control strategies can be customized according to user requirements to display different speed limit effects and meet the diverse needs of users.

[0112] In another embodiment, Figure 4 As shown, a bandwidth control method is provided, which is described by taking the method applied to a speed limit center as an example, and includes the following steps:

[0113] Step S402, read the speed limit domain name configuration information.

[0114] Step S404: Determine the bandwidth threshold of the pre-control area at the lowest speed limit gear according to the threshold ratio of the pre-control area and the speed limit gear parameter.

[0115] Step S406, periodically query the total bandwidth corresponding to the target domain name, and when the total bandwidth corresponding to the target domain name is greater than the bandwidth threshold of the pre-control area under the lowest speed limit gear, query the current operation index of the target domain name on the corresponding edge host.

[0116] Step S408: Determine the current total bandwidth corresponding to the target domain name according to the current operation index.

[0117] Step S410: When the current total bandwidth is greater than the preset gear bandwidth corresponding to the target domain name, the controlled speed limit information is generated according to the bandwidth control strategy, and the controlled speed limit information is sent to the edge host.

[0118] Step S412: Otherwise, generate pre-control speed limit information according to the bandwidth control strategy, and send the pre-control speed limit information to the edge host.

[0119] It should be noted that the specific definition of the above steps can refer to the specific definition of a bandwidth control method above.

[0120] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0121] Based on the same inventive concept, the embodiment of the present application also provides a bandwidth control device for implementing the bandwidth control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more bandwidth control device embodiments provided below can refer to the limitations on the bandwidth control method above, and will not be repeated here.

[0122] In an exemplary embodiment, Figure 5 As shown, a bandwidth control device is provided, including: a reading module 510, a query module 520 and a speed limit module 530, wherein:

[0123] The reading module 510 is used to read the speed limit domain name configuration information; the speed limit domain name configuration information includes the configuration information required to implement bandwidth control for the target domain name; the bandwidth range of the target domain name includes a pre-controlled area and a controlled area.

[0124] The query module 520 is used to query the current operating indicators of the target domain name on the corresponding edge host according to the speed limit domain name configuration information; the operating indicators include at least one indicator of the upstream bandwidth, downstream bandwidth, query rate per second data and current transmission speed corresponding to the target domain name.

[0125] The speed limit module 530 is used to generate target speed limit information according to the current operating indicators in accordance with the bandwidth control strategy, and send the target speed limit information to the edge host; the bandwidth control strategy includes at least one of the gear speed limit strategy or the adaptive speed limit strategy; the target speed limit information includes the pre-control speed limit information for the pre-control area or the controlled speed limit information for the controlled area.

[0126] In one of the embodiments, the configuration information includes a threshold ratio and a speed limit gear parameter of the pre-control zone, and the query module 520 is specifically used to determine the bandwidth threshold of the pre-control zone at the lowest speed limit gear according to the threshold ratio and the speed limit gear parameter of the pre-control zone; periodically query the total bandwidth corresponding to the target domain name, and when the total bandwidth corresponding to the target domain name is greater than the bandwidth threshold of the pre-control zone at the lowest speed limit gear, query the current operating index of the target domain name on the corresponding edge host.

[0127] In one of the embodiments, the speed limit module 530 is specifically used to determine the current total bandwidth corresponding to the target domain name according to the current operating index; when the current total bandwidth is greater than the preset gear bandwidth corresponding to the target domain name, the controlled speed limit information is generated according to the bandwidth control strategy, and the controlled speed limit information is sent to the edge host; otherwise, the pre-controlled speed limit information is generated according to the bandwidth control strategy, and the pre-controlled speed limit information is sent to the edge host.

[0128] In one of the embodiments, the speed limit module 530 is specifically used to dynamically determine the basic speed limit information corresponding to the edge host according to the preset ratio in the gear speed limit strategy; the basic speed limit information includes at least one of the uplink speed limit value, the downlink speed limit value, the upper limit value of the query rate per second, or the lower limit value of the query rate per second; the target speed limit information is determined based on the basic speed limit information corresponding to the edge host.

[0129] In one of the embodiments, the speed limit module 530 is specifically used to determine whether the current request is a first request when the adaptive speed limit strategy is enabled; if yes, use the basic speed limit information as the target speed limit information.

[0130] In one of the embodiments, when the current request is not the first request and the current total bandwidth corresponding to the target domain name is greater than the previous total bandwidth corresponding to the target domain name, the speed limit module 530 is specifically used to dynamically adjust the uplink speed limit value and the downlink speed limit value according to the adaptive speed limit strategy; when the adjusted uplink speed limit value and the adjusted downlink speed limit value are less than the minimum speed limit value in the adaptive speed limit strategy, the target speed limit information is generated according to the minimum speed limit value.

[0131] In one of the embodiments, when the adjusted uplink speed limit value and the adjusted downlink speed limit value are greater than the minimum speed limit value, the speed limit module 530 is further used to generate the target speed limit information according to the adjusted uplink speed limit value and the adjusted downlink speed limit value.

[0132] Each module in the above bandwidth control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0133] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store bandwidth control policy data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a bandwidth control method is implemented.

[0134] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0135] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0137] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0138] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0139] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0140] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0141] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A bandwidth control method, characterized in that: The method comprises: Reading speed limit domain name configuration information; the speed limit domain name configuration information includes configuration information required for implementing bandwidth control for the target domain name; the bandwidth range of the target domain name includes a pre-control area and a controlled area; wherein the configuration information includes a threshold ratio and a speed limit gear parameter of the pre-control area; According to the speed limit domain name configuration information, query the current operating index of the target domain name on the corresponding edge host; the operating index includes at least one of the upstream bandwidth, downstream bandwidth, query rate per second data and current transmission speed corresponding to the target domain name; including: determining the bandwidth threshold of the pre-control area at the lowest speed limit gear according to the threshold ratio of the pre-control area and the speed limit gear parameter; periodically querying the total bandwidth corresponding to the target domain name, and when the total bandwidth corresponding to the target domain name is greater than the bandwidth threshold of the pre-control area at the lowest speed limit gear, querying the current operating index of the target domain name on the corresponding edge host; According to the bandwidth control strategy, target speed limit information is generated according to the current operating indicators, and the target speed limit information is sent to the edge host; the bandwidth control strategy includes at least one of a gear speed limit strategy or an adaptive speed limit strategy; the target speed limit information includes pre-control speed limit information for the pre-control area or controlled speed limit information for the controlled area.

2. The method according to claim 1, characterized in that The step of generating target speed limit information according to the current operation index according to the bandwidth control strategy, and sending the target speed limit information to the edge host includes: Determine the current total bandwidth corresponding to the target domain name according to the current operation indicator; In the case where the current total bandwidth is greater than the preset gear bandwidth corresponding to the target domain name, generating the controlled speed limit information according to the bandwidth control strategy, and sending the controlled speed limit information to the edge host; Otherwise, the pre-control speed limit information is generated according to the bandwidth control strategy, and the pre-control speed limit information is sent to the edge host.

3. The method according to claim 1, characterized in that Generating target speed limit information according to the current operation index in accordance with the bandwidth control strategy includes: According to the preset ratio in the gear speed limit strategy, dynamically determine the basic speed limit information corresponding to the edge host; the basic speed limit information includes at least one of the uplink speed limit value, the downlink speed limit value, the query rate upper limit value per second, or the query rate lower limit value per second; The target speed limit information is determined according to the basic speed limit information corresponding to the edge host.

4. The method according to claim 3, characterized in that The determining the target speed limit information according to the basic speed limit information corresponding to the edge host includes: When the adaptive rate limit strategy is enabled, determining whether the current request is a first request; If yes, the basic speed limit information is used as the target speed limit information.

5. The method according to claim 4, characterized in that In a case where the current request is not the first request and the current total bandwidth corresponding to the target domain name is greater than the last total bandwidth corresponding to the target domain name, determining the target speed limit information according to the basic speed limit information corresponding to the edge host includes: According to the adaptive speed limit strategy, dynamically adjust the uplink speed limit value and the downlink speed limit value; When the adjusted uplink speed limit value and the adjusted downlink speed limit value are less than the minimum speed limit value in the adaptive speed limit strategy, the target speed limit information is generated according to the minimum speed limit value.

6. The method according to claim 5, characterized in that In a case where the adjusted uplink speed limit value and the adjusted downlink speed limit value are greater than the minimum speed limit value, the method further includes: The target speed limit information is generated according to the adjusted uplink speed limit value and the adjusted downlink speed limit value.

7. The method according to claim 1, characterized in that The speed limit domain name configuration information includes at least one of a speed limit type, a threshold ratio of the pre-control area, a speed limit gear parameter, a speed limit gear status code, and an adaptive speed limit parameter.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Domain name bandwidth adjusting method and device

    CN110048968A

  • Bandwidth control method, bandwidth control platform, server and storage medium

    CN110690988A