Bandwidth adjusting method and device, electronic equipment and computer program product
By obtaining and analyzing network parameters, judging the bandwidth adjustment conditions of the server, and adjusting the maximum available uplink bandwidth in real time, the problem of inaccurate bandwidth allocation in the existing technology is solved, and service quality and bandwidth utilization are improved.
Patent Information
- Application Number
- CN202411240280.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-11-12
AI Technical Summary
The prior art is difficult to accurately reflect the maximum available uplink bandwidth of server-side devices in real time, resulting in a decline in service quality and unable to meet the accurate requirements of bandwidth allocation.
By obtaining the network parameters and the maximum available uplink bandwidth of the current time point, we judge whether the uplink bandwidth adjustment conditions are met, the bandwidth adjustment sampling point is determined, and the bandwidth adjustment time point is determined based on multiple sampling points, and the maximum available uplink bandwidth is adjusted.
Real-time adjustment of the maximum available uplink bandwidth on the server is achieved, accurately reflecting the service quality of the server, improving bandwidth utilization and service quality, and providing guidance for resource allocation on the scheduling side.
Smart Images

Figure CN118945061A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a bandwidth adjustment method, a bandwidth adjustment device, an electronic device, and a computer program product. Background Art
[0002] When providing equipment, server equipment manufacturers generally provide an upper bandwidth limit to represent the upper limit of the service capacity of the equipment for reference by developers or scheduling parties to allocate resources.
[0003] However, there may be some problems with the upper bandwidth limit reported by the manufacturer, resulting in the manufacturer's reported bandwidth being unable to reflect the real-time service capabilities of the device and unable to meet the accurate requirements of bandwidth allocation, resulting in a decline in the service quality of the server-side device.
[0004] In view of this, there is an urgent need in the art for a bandwidth adjustment method that can adjust the maximum available uplink bandwidth of the server in real time and accurately reflect the service quality and service capability of the server.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present disclosure is to provide a bandwidth adjustment method, a bandwidth adjustment device, an electronic device and a computer program product, so as to at least to a certain extent be able to adjust the maximum available uplink bandwidth of a server in real time, and accurately reflect the service quality and service capability of the server.
[0007] According to a first aspect of the present disclosure, a bandwidth adjustment method is provided, comprising:
[0008] Acquire network parameters at a current time point and a maximum available uplink bandwidth corresponding to the current time point, wherein the network parameters include network quality parameters and service bandwidth;
[0009] Determining whether the current time point satisfies an uplink bandwidth adjustment condition according to the network quality parameter, the service bandwidth, and the maximum available uplink bandwidth at the current time point;
[0010] If the current time point satisfies the uplink bandwidth adjustment condition, determining the current time point as a bandwidth adjustment sampling point;
[0011] A bandwidth adjustment time point is determined according to the plurality of bandwidth adjustment sampling points, and the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point is adjusted.
[0012] In an exemplary embodiment of the present disclosure, the method further includes:
[0013] Obtaining a reported bandwidth of the server, and determining an initial value of the maximum available uplink bandwidth according to the reported bandwidth;
[0014] When the service bandwidth reaches the initial value of the maximum available uplink bandwidth, the maximum available uplink bandwidth starts to be adjusted.
[0015] In an exemplary embodiment of the present disclosure, obtaining network parameters at a current time point includes:
[0016] Acquire actual network parameters of a plurality of historical time points adjacent to the current time point;
[0017] Obtaining a predicted value of the network parameter at the current time point according to the actual network parameters at the multiple historical time points and the weight parameters respectively corresponding to the multiple historical time points;
[0018] The predicted value of the network parameter at the current time point is used as the network parameter at the current time point.
[0019] In an exemplary embodiment of the present disclosure, the method further includes:
[0020] A weight parameter corresponding to the historical time point is determined according to the time interval between the historical time point and the current time point.
[0021] In an exemplary embodiment of the present disclosure, the method further includes:
[0022] The weight parameters corresponding to the respective historical time points are adjusted according to the number of the historical time points.
[0023] In an exemplary embodiment of the present disclosure, judging whether the current time point satisfies the uplink bandwidth adjustment condition according to the network quality parameter, the service bandwidth, and the maximum available uplink bandwidth at the current time point includes:
[0024] Obtaining bandwidth utilization at the current time point according to the network quality parameter at the current time point, the service bandwidth, and the maximum available uplink bandwidth;
[0025] According to the bandwidth utilization rate at the current time point and the bandwidth utilization rate threshold, it is determined whether the current time point meets the uplink bandwidth adjustment condition.
[0026] In an exemplary embodiment of the present disclosure, the network quality parameter includes a data confirmation rate, and obtaining the bandwidth utilization rate at the current time point according to the network quality parameter at the current time point, the service bandwidth, and the maximum available uplink bandwidth includes:
[0027] Obtaining a confirmed bandwidth at the current time point according to the data confirmation rate and the service bandwidth at the current time point;
[0028] The confirmed bandwidth utilization rate at the current time point is obtained according to the ratio of the confirmed bandwidth to the maximum available uplink bandwidth.
[0029] In an exemplary embodiment of the present disclosure, the network quality parameter includes a packet loss rate, and judging whether the current time point meets the uplink bandwidth adjustment condition according to the bandwidth utilization rate and the bandwidth utilization threshold at the current time point includes:
[0030] If the bandwidth utilization rate at the current time point is greater than the bandwidth utilization rate upper limit threshold, and the packet loss rate is less than the packet loss rate threshold, it is determined that the current time point meets the first uplink bandwidth adjustment condition;
[0031] If the bandwidth utilization rate at the current time point is less than the bandwidth utilization rate lower limit threshold, and the packet loss rate is greater than the packet loss rate threshold, it is determined that the current time point meets the second uplink bandwidth adjustment condition.
[0032] In an exemplary embodiment of the present disclosure, if the current time point satisfies the uplink bandwidth adjustment condition, determining the current time point as a bandwidth adjustment sampling point includes:
[0033] If the current time point satisfies the first uplink bandwidth adjustment condition, determining the current time point as a bandwidth increase sampling point;
[0034] If the current time point satisfies the second uplink bandwidth adjustment condition, the current time point is determined as a bandwidth reduction sampling point.
[0035] In an exemplary embodiment of the present disclosure, the determining the bandwidth adjustment time point according to the plurality of bandwidth adjustment sampling points includes:
[0036] Putting the bandwidth adjustment sampling point into a sampling point queue corresponding to the uplink bandwidth adjustment condition;
[0037] When the length of the sampling point queue reaches a queue length threshold, obtaining a first time point corresponding to the bandwidth adjustment sampling point at the head of the queue;
[0038] If the first time point is within the valid time range, the next time point of the current time point is determined as the bandwidth adjustment time point.
[0039] In an exemplary embodiment of the present disclosure, the adjusting the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point includes:
[0040] Obtaining a bandwidth difference between the confirmed bandwidth at the current time point and the maximum available uplink bandwidth;
[0041] Determining a bandwidth adjustment ratio corresponding to the bandwidth adjustment time point according to the bandwidth difference;
[0042] The maximum available uplink bandwidth corresponding to the bandwidth adjustment time point is adjusted according to the bandwidth adjustment ratio.
[0043] In an exemplary embodiment of the present disclosure, the method further includes:
[0044] Determining an adjustment upper limit value of the maximum available uplink bandwidth according to the reported bandwidth of the server;
[0045] An adjustment lower limit value of the maximum available uplink bandwidth is determined according to the initial value of the maximum available uplink bandwidth and the confirmed bandwidth.
[0046] According to a second aspect of the present disclosure, a bandwidth adjustment device is provided, comprising:
[0047] A network parameter acquisition module, configured to execute acquisition of network parameters at a current time point and a maximum available uplink bandwidth corresponding to the current time point, wherein the network parameters include network quality parameters and service bandwidth;
[0048] An adjustment condition judgment module is configured to judge whether the current time point meets the uplink bandwidth adjustment condition according to the network quality parameter, the service bandwidth and the maximum available uplink bandwidth at the current time point;
[0049] an adjustment sampling point determination module, configured to determine the current time point as a bandwidth adjustment sampling point if the current time point satisfies the uplink bandwidth adjustment condition;
[0050] The uplink bandwidth adjustment module is configured to determine a bandwidth adjustment time point according to the plurality of bandwidth adjustment sampling points, and adjust the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point.
[0051] In an exemplary embodiment of the present disclosure, the bandwidth adjustment device further includes a bandwidth adjustment starting module, and the bandwidth adjustment starting module includes:
[0052] A bandwidth initial value determination unit, configured to obtain a reported bandwidth of a server, and determine an initial value of the maximum available uplink bandwidth according to the reported bandwidth;
[0053] The adjustment start time determining unit is configured to start adjusting the maximum available uplink bandwidth when the service bandwidth reaches an initial value of the maximum available uplink bandwidth.
[0054] In an exemplary embodiment of the present disclosure, the network parameter acquisition module includes:
[0055] A historical parameter acquisition unit, configured to acquire actual network parameters of a plurality of historical time points adjacent to the current time point;
[0056] A parameter prediction value determination unit is configured to obtain a network parameter prediction value at the current time point according to the actual network parameters at the multiple historical time points and the weight parameters respectively corresponding to the multiple historical time points;
[0057] The network parameter determination unit is configured to use the predicted value of the network parameter at the current time point as the network parameter at the current time point.
[0058] In an exemplary embodiment of the present disclosure, the network parameter acquisition module further includes:
[0059] The weight parameter determination unit is configured to determine the weight parameter corresponding to the historical time point according to the time interval between the historical time point and the current time point.
[0060] In an exemplary embodiment of the present disclosure, the network parameter acquisition module further includes:
[0061] The weight parameter adjustment unit is configured to adjust the weight parameter corresponding to each of the historical time points according to the number of the historical time points.
[0062] In an exemplary embodiment of the present disclosure, the adjustment condition determination module includes:
[0063] a bandwidth utilization determination unit, configured to obtain the bandwidth utilization at the current time point according to the network quality parameter at the current time point, the service bandwidth and the maximum available uplink bandwidth;
[0064] The adjustment condition judgment unit is configured to judge whether the current time point meets the uplink bandwidth adjustment condition according to the bandwidth utilization rate and the bandwidth utilization rate threshold at the current time point.
[0065] In an exemplary embodiment of the present disclosure, the bandwidth utilization determining unit includes:
[0066] a confirmation bandwidth determination unit, configured to obtain the confirmation bandwidth at the current time point according to the data confirmation rate and the service bandwidth at the current time point;
[0067] The confirmed bandwidth utilization determining unit is configured to obtain the confirmed bandwidth utilization at the current time point according to the ratio of the confirmed bandwidth to the maximum available uplink bandwidth.
[0068] In an exemplary embodiment of the present disclosure, the adjustment condition determination unit includes:
[0069] A first adjustment condition judgment unit is configured to determine that the current time point satisfies a first uplink bandwidth adjustment condition if the bandwidth utilization at the current time point is greater than a bandwidth utilization upper limit threshold and the packet loss rate is less than a packet loss rate threshold;
[0070] The second adjustment condition judgment unit is configured to determine that the current time point meets the second uplink bandwidth adjustment condition if the bandwidth utilization at the current time point is less than the bandwidth utilization lower limit threshold and the packet loss rate is greater than the packet loss rate threshold.
[0071] In an exemplary embodiment of the present disclosure, the adjusting sampling point determination module includes:
[0072] a bandwidth increase sampling point determining unit, configured to determine the current time point as a bandwidth increase sampling point if the current time point satisfies the first uplink bandwidth adjustment condition;
[0073] The bandwidth reduction sampling point determining unit is configured to determine the current time point as the bandwidth reduction sampling point if the current time point meets the second uplink bandwidth adjustment condition.
[0074] In an exemplary embodiment of the present disclosure, the uplink bandwidth adjustment module includes:
[0075] a sampling point queue determining unit, configured to execute placing the bandwidth adjustment sampling point into a sampling point queue corresponding to the uplink bandwidth adjustment condition;
[0076] A first time point determining unit is configured to execute, when the length of the sampling point queue reaches a queue length threshold, obtaining a first time point corresponding to the bandwidth adjustment sampling point at the head of the queue;
[0077] The bandwidth adjustment time point determining unit is configured to determine a time point next to the current time point as the bandwidth adjustment time point if the first time point is within a valid time range.
[0078] In an exemplary embodiment of the present disclosure, the uplink bandwidth adjustment module further includes:
[0079] A bandwidth difference determining unit, configured to execute acquisition of a bandwidth difference between the confirmed bandwidth at the current time point and the maximum available uplink bandwidth;
[0080] a bandwidth adjustment ratio determining unit, configured to determine the bandwidth adjustment ratio corresponding to the bandwidth adjustment time point according to the bandwidth difference;
[0081] The uplink bandwidth adjustment unit is configured to adjust the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point according to the bandwidth adjustment ratio.
[0082] In an exemplary embodiment of the present disclosure, the uplink bandwidth adjustment module further includes:
[0083] An adjustment upper limit value determining unit is configured to determine an adjustment upper limit value of the maximum available uplink bandwidth according to a bandwidth reported by the server;
[0084] The adjustment lower limit value determining unit is configured to determine the adjustment lower limit value of the maximum available uplink bandwidth according to the initial value of the maximum available uplink bandwidth and the confirmed bandwidth.
[0085] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the bandwidth adjustment methods described above by executing the executable instructions.
[0086] According to a fourth aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the bandwidth adjustment method described in any one of the above is implemented.
[0087] The exemplary embodiments of the present disclosure may have the following beneficial effects:
[0088] In the bandwidth adjustment method of the example implementation method of the present disclosure, by obtaining the network quality parameters and service bandwidth at the current time point, it is determined whether the current time point meets the uplink bandwidth adjustment conditions. If it does, the current time point is determined as the bandwidth adjustment sampling point, and then the bandwidth adjustment time point is determined according to the bandwidth adjustment sampling points of multiple time points, and the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point is adjusted. The bandwidth adjustment method in the example implementation method of the present disclosure, on the one hand, reasonably adjusts the maximum available uplink bandwidth of the service end through real-time network quality parameters and service bandwidth, accurately reflects the service quality of the service end, and improves the bandwidth utilization and service quality of the service end; on the other hand, it can also complete the calculation of the maximum available uplink bandwidth within any time range according to specific requirements. The maximum available uplink bandwidth finally obtained can not only be used as the bandwidth threshold of the service end itself, but also provide guidance for resource allocation on the scheduling side.
[0089] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0091] Figure 1 A schematic diagram of a content distribution network scenario according to a specific implementation of the present disclosure is shown;
[0092] Figure 2 A schematic flow chart showing a method for adjusting bandwidth according to an exemplary embodiment of the present disclosure;
[0093] Figure 3 A schematic diagram showing a process of obtaining network parameters at a current time point according to an exemplary embodiment of the present disclosure;
[0094] Figure 4 A schematic diagram of a historical network parameter queue according to a specific implementation of the present disclosure is shown;
[0095] Figure 5 A schematic diagram of a process for determining whether a current time point satisfies an uplink bandwidth adjustment condition according to an exemplary embodiment of the present disclosure is shown;
[0096] Figure 6 A schematic diagram of a process for determining a bandwidth adjustment sampling point according to a specific implementation of the present disclosure is shown;
[0097] Figure 7 A schematic diagram showing a process of determining a bandwidth adjustment time point according to an exemplary embodiment of the present disclosure;
[0098] Figure 8 A schematic diagram of a sampling point queue according to a specific embodiment of the present disclosure is shown;
[0099] Fig. 9 A schematic diagram of a process for adjusting the maximum available uplink bandwidth according to an exemplary embodiment of the present disclosure is shown;
[0100] Fig.10 A schematic diagram of adjusting the maximum available uplink bandwidth according to a specific implementation of the present disclosure is shown;
[0101] Fig.11 A schematic flow chart of a method for adjusting bandwidth according to a specific implementation of the present disclosure is shown;
[0102] Fig.12 A schematic diagram showing an adjustment result of the maximum available uplink bandwidth according to a specific implementation of the present disclosure;
[0103] Fig.13 A block diagram showing a bandwidth adjustment device according to an exemplary embodiment of the present disclosure;
[0104] Fig.14 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0105] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0106] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0107] In the CDN (Content Delivery Network) scenario, servers distributed in various regions store a large number of data copies, which are used to serve nearby users, meet users' data requests, and provide faster and more stable services, thereby reducing the load pressure on the source station and reducing bandwidth costs.
[0108] In such Figure 1 The CDN scenario shown in the figure contains three important modules. The server will store a large number of files and report them to the dispatching side, which will also score, dispatch, and manage the server. When the client needs a file, it will first query the dispatching side for information about the target file. The dispatching side will return information about the server that stores the file. After the client gets the information, it will initiate a data request to the server. After receiving the request, the server will return a data reply to the client. The three ends cooperate with each other to complete the successful download of the client data.
[0109] For the client and server, the maximum available uplink bandwidth determines the upper limit of their service capabilities. Exceeding this upper limit may lead to congestion, poor service quality and other consequences. In particular, on the server side, if the device can provide services below the maximum available uplink bandwidth, it can not only ensure good service quality, but also explore and serve more clients as much as possible, give full play to its role, thereby improving the utilization of the server and further reducing bandwidth costs.
[0110] In some related embodiments, the scheduling side can perform stress testing on the server-side device in the early morning, at a fixed time point, or when the server-side device is basically not in service, that is, by improving its scheduling score, or sending a large number of client requests to it, so that the service bandwidth of the server increases to or approaches the upper limit of its hardware network card, and observes its service bandwidth and quality, so as to determine whether it is serving resources of other manufacturers, and detect the actual service capacity, and then use this value as the maximum available uplink standard for the whole day.
[0111] Once the uplink standard is determined, it means that the uplink service bandwidth of the node on that day will not exceed this value, that is, the scheduling side will complete the resource allocation of the server according to the uplink standard, and the client will also make data requests according to the uplink standard to prevent the server from overloading. In this way, the service capacity of the server can be maintained within a certain range, and will not exceed this uplink standard at most, so that the service can be provided to the greatest extent possible while ensuring good quality.
[0112] The technical solutions in the above-mentioned related embodiments mainly perform control and calculation of uplink standards on the scheduling side, and then transmit them to the server side. Therefore, there are some problems such as real-time performance and accuracy, as follows:
[0113] 1. It cannot reflect the real uplink capacity in real time. The service quality and service capacity of the server change over time and are not static. Therefore, the uplink capacity detected at a fixed time point cannot reflect the service capacity at every time period throughout the day, so it is not accurate enough.
[0114] 2. Using a large number of client requests to perform stress testing on a large number of machines affects the reasonable allocation of client and server resources, and also affects the scheduling strategy to a certain extent;
[0115] 3. This method requires cooperation between the dispatching side and the service side, and lacks accuracy and real-time performance.
[0116] Based on the above problems, this exemplary embodiment provides a bandwidth adjustment method. Figure 2 As shown, the bandwidth adjustment method may include the following steps:
[0117] Step S210: Obtain network parameters at the current time point and the maximum available uplink bandwidth corresponding to the current time point, wherein the network parameters include network quality parameters and service bandwidth.
[0118] Step S220: According to the network quality parameters, service bandwidth and maximum available uplink bandwidth at the current time point, it is determined whether the current time point meets the uplink bandwidth adjustment condition.
[0119] Step S230: If the current time point meets the uplink bandwidth adjustment condition, the current time point is determined as the bandwidth adjustment sampling point.
[0120] Step S240: Determine a bandwidth adjustment time point according to the multiple bandwidth adjustment sampling points, and adjust the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point.
[0121] From the perspective of the server, the bandwidth adjustment method in the example implementation of the present disclosure can, on the one hand, reasonably adjust the maximum available uplink bandwidth of the server through real-time network quality parameters and service bandwidth, accurately reflect the service quality of the server, and improve the bandwidth utilization and service quality of the server; on the other hand, it can also complete the calculation of the maximum available uplink bandwidth within any time range according to specific requirements. The maximum available uplink bandwidth finally obtained can not only be used as the bandwidth threshold of the server itself, but also provide guidance for resource allocation on the scheduling side.
[0122] Next, combine Figures 3 to 12 The above steps of this exemplary embodiment are described in more detail.
[0123] In step S210, network parameters at the current time point and the maximum available uplink bandwidth corresponding to the current time point are obtained, wherein the network parameters include network quality parameters and service bandwidth.
[0124] In this example implementation, the network quality parameters are quality data of various time dimensions calculated at the application layer or transport layer of the protocol when data is sent and received between the server and the client. The service bandwidth refers to the actual bandwidth generated by the server during the service process, which can be obtained in real time.
[0125] Taking the UDP (User Datagram Protocol) scenario as an example, network quality parameters may include packet loss rate at the second or minute level, ACK (Acknowledge character) rate, RTT (Round-Trip Time) and other information. Among them, UDP is a connectionless, simple transport layer protocol, which is widely used in network communication scenarios that require fast transmission and low latency. Compared with TCP, UDP provides a lighter transmission method, but lacks certain reliability mechanisms and is widely used in scenarios that require fast transmission and low latency. ACK refers to a transmission control character sent by the receiving station to the sending station in data communication, indicating that the sent data has been confirmed to be received correctly.
[0126] In this example implementation, the reported bandwidth of the server may be obtained, and the initial value of the maximum available uplink bandwidth may be determined according to the reported bandwidth. When the service bandwidth reaches the initial value of the maximum available uplink bandwidth, the maximum available uplink bandwidth may be adjusted.
[0127] The reported bandwidth of the server refers to the upper bandwidth reported by the server equipment manufacturer when providing the equipment. The adjustment of the maximum available uplink bandwidth can be based on the reported bandwidth. For example, the initial value can be set to 1 / 10 of the reported bandwidth. When the service bandwidth is greater than the initial value, the maximum available uplink bandwidth will be adjusted. If it is not reached, no adjustment will be made.
[0128] The most direct manifestation of the service capability of the server is the quality of service. The maximum available bandwidth can be reasonably adjusted according to the service bandwidth and network quality parameters. The current service bandwidth can be judged according to the network quality parameters. If the service quality is poor, it is considered that the current service bandwidth has reached the upper limit at the current moment. If the quality is high, it is considered that it has not reached the upper limit and still has good service capability. Its scheduling score can be increased or it can serve more clients. Finally, a reasonable upper bandwidth that can reflect the current service quality can be obtained.
[0129] In this example implementation, Figure 3 As shown, obtaining the network parameters at the current time point may include the following steps:
[0130] Step S310: Obtain actual network parameters of multiple historical time points adjacent to the current time point.
[0131] The actual network parameters at multiple historical time points before the current time point are obtained, and the network parameters at the current time point are predicted using the actual network parameters at the multiple historical time points.
[0132] Step S320: Obtain the predicted value of the network parameter at the current time point according to the actual network parameters at multiple historical time points and the weight parameters corresponding to the multiple historical time points.
[0133] In this example implementation, a weighted moving average method can be used to preprocess the data to obtain the predicted value of the network parameter at the current time point. The specific calculation formula is as follows:
[0134] F(t)=ω1A t-1 +ω2A t-2 +…+ω n A t-n
[0135] Where F(t) is the predicted value of the network parameters in the current cycle, A t-1 is the actual network parameter at time t-1, A t-2 is the actual network parameter at time t-2, A t-n is the actual network parameter at time tn, ω1 is the weight parameter at time t-1, ω2 is the weight parameter at time t-2, ω n is the weight parameter at time tn, ω1+ω2+…+ω n = 1. At each time point, the historical data of the past n cycles can be smoothed to obtain the predicted value of the network parameters at the current time point.
[0136] In this example implementation, the weight parameter corresponding to the historical time point may be determined according to the time interval between the historical time point and the current time point.
[0137] You can use Figure 4 The queue data structure shown maintains the first-in-first-out sliding characteristic and saves the historical network parameters of the latest n cycles in the queue. At the same time, a weight array is maintained to save the weight parameters corresponding to the data in the queue. The farther the data is from the current time point, the smaller the weight is, and the closer the data is to the current time point, the larger the weight is.
[0138] For example, suppose the data of the last 5 seconds needs to be smoothed, and the queue stores data from A1 to A5. A5 is the most recent data, that is, the data of the last second, and has the largest weight. A1 is the oldest data, that is, the data of the last 5 seconds, and has the smallest weight. This can ensure the validity of the most recent data, minimize data fluctuations, and maintain the smoothing effect.
[0139] In this example implementation, the weight parameter corresponding to each historical time point may be adjusted according to the number of historical time points.
[0140] When the number of data is less than the target number, the weight will be adjusted accordingly to meet the target weight distribution ratio. When data is missing at a certain moment, the weight array needs to change accordingly to ensure the rationality of the weight. Assuming that the above ratio is still maintained, when the data is reduced to 4, the corresponding weight array needs to change to 4 / 9.5 (42.1%), 3 / 9.5 (31.6%), 1.5 / 9.5 (15.8%), 1 / 9.5 (10.5%), when the data is reduced to 3, the corresponding weight array changes to 4 / 8.5 (47.1%), 3 / 8.5 (35.3%), 1.5 / 8.5 (17.6%), and so on. The advantage of this calculation is that the proportion of recent data can be kept unchanged to avoid missing data and thus affect the confidence of the data.
[0141] Step S330: Taking the predicted value of the network parameter at the current time point as the network parameter at the current time point.
[0142] After collecting data for a period of time and smoothing it, the predicted network parameter value at the current time point is used as the network parameter at the current time point to judge the service quality, rather than directly obtaining the actual network parameter at the current time point for calculation. This can avoid the problem of low data confidence and excessive volatility of the current second-level quality data due to certain network reasons or data fluctuations. Using the weighted sliding average filtering algorithm to complete the smoothing of network quality parameters and service bandwidth can also reasonably deal with the situation of missing data.
[0143] This data smoothing method is applicable to the processing of all network quality parameters and service bandwidth data, and is also applicable to processing in other similar data smoothing scenarios. The number of data n can be adjusted according to specific needs to avoid large fluctuations in data and ensure a certain degree of data sensitivity and confidence.
[0144] After obtaining the smoothed network quality parameters and service bandwidth, the maximum available uplink bandwidth can be detected. When the quality and bandwidth meet specific conditions, the maximum available uplink bandwidth can be adjusted.
[0145] Continue to refer Figure 2 As shown, in step S220, it is determined whether the current time point meets the uplink bandwidth adjustment condition according to the network quality parameters, service bandwidth and maximum available uplink bandwidth at the current time point.
[0146] The service quality of the server represents its service capacity and service upper limit, so the service quality can be used as a criterion for bandwidth adjustment.
[0147] In this example implementation, Figure 5 As shown, according to the network quality parameters, service bandwidth and maximum available uplink bandwidth at the current time point, it is determined whether the uplink bandwidth adjustment condition is met at the current time point, which may specifically include the following steps:
[0148] Step S510: Obtain the bandwidth utilization at the current time point according to the network quality parameters, service bandwidth and maximum available uplink bandwidth at the current time point.
[0149] In this example implementation, the network quality parameters may include a data confirmation rate. The confirmation bandwidth at the current time point may be obtained based on the data confirmation rate and service bandwidth at the current time point, and the confirmation bandwidth utilization at the current time point may be obtained based on the ratio of the confirmation bandwidth to the maximum available uplink bandwidth.
[0150] Taking UDP network quality parameters as an example, the data confirmation rate is the ACK rate, and the confirmation bandwidth utilization is the ACK bandwidth utilization. The ACK bandwidth utilization can be used as a comprehensive quality indicator of the ACK rate, service bandwidth, and maximum available uplink bandwidth. The calculation formula is as follows:
[0151]
[0152] This indicator can be divided into two parts. The numerator is the ACK bandwidth, which can reflect the ACK situation of the server. It is the bandwidth that the server actually receives, that is, the bandwidth that is ACKed. The part that is not ACKed may be caused by packet loss due to server congestion or network conditions. The denominator is the maximum available uplink bandwidth result at the current time point. The comparison between the two is the percentage of the bandwidth that is actually ACKed to the detection result.
[0153] Step S520: According to the bandwidth utilization rate at the current time point and the bandwidth utilization rate threshold, determine whether the current time point meets the uplink bandwidth adjustment condition.
[0154] In this example implementation, the network quality parameter may also include a packet loss rate. In addition to reflecting the ACK situation through the ACK bandwidth utilization, the packet loss rate may also be considered.
[0155] In this example implementation, if the bandwidth utilization at the current time point is greater than the bandwidth utilization upper limit threshold, and the packet loss rate is less than the packet loss rate threshold, it is determined that the current time point meets the first uplink bandwidth adjustment condition.
[0156] The first uplink bandwidth adjustment condition is a condition for increasing bandwidth. If the ACK bandwidth utilization is greater than the upper threshold of the ACK bandwidth utilization (for example, close to 100%) and the smoothed packet loss rate is less than the packet loss rate threshold, for example, a%, it is considered that the current service quality is good, and the current detection result is insufficient to reflect the current service capability, and the bandwidth should be appropriately increased.
[0157] In this example implementation, if the bandwidth utilization at the current time point is less than the bandwidth utilization lower limit threshold, and the packet loss rate is greater than the packet loss rate threshold, it is determined that the current time point meets the second uplink bandwidth adjustment condition.
[0158] The second uplink bandwidth adjustment condition is a condition for reducing bandwidth. If the ACK bandwidth utilization is less than the lower limit threshold of the ACK bandwidth utilization (for example, smaller than the upper limit threshold and greater than 50%) and the smoothed packet loss rate is greater than the packet loss rate threshold, for example, a%, it is considered that the current service quality is poor, the service capacity should be lower than the current detection result, and the bandwidth should be appropriately reduced.
[0159] Continue to refer Figure 2 As shown, in step S230, if the current time point meets the uplink bandwidth adjustment condition, the current time point is determined as the bandwidth adjustment sampling point.
[0160] In this example implementation, if the current time point meets the first uplink bandwidth adjustment condition, the current time point is determined as the bandwidth increase sampling point. If the current time point meets the second uplink bandwidth adjustment condition, the current time point is determined as the bandwidth decrease sampling point.
[0161] like Figure 6 As shown in FIG. 1 , if the ACK bandwidth utilization is greater than the upper threshold of the ACK bandwidth utilization and the smoothed packet loss rate is less than the packet loss rate threshold, the first uplink bandwidth adjustment condition is met and recorded as a bandwidth increase sampling point. If the ACK bandwidth utilization is less than the lower threshold of the ACK bandwidth utilization and the smoothed packet loss rate is greater than the packet loss rate threshold, the second uplink bandwidth adjustment condition is met and recorded as a bandwidth decrease sampling point.
[0162] In step S240, a bandwidth adjustment time point is determined according to a plurality of bandwidth adjustment sampling points, and the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point is adjusted.
[0163] In this example implementation, after marking the bandwidth increase or decrease sampling points, the bandwidth is not directly increased or decreased according to the marking result at the current time point, but a smooth adjustment is further performed to determine the timing of bandwidth adjustment.
[0164] In this example implementation, Figure 7 As shown, determining the bandwidth adjustment time point according to multiple bandwidth adjustment sampling points may specifically include the following steps:
[0165] Step S710: Put the bandwidth adjustment sampling point into the sampling point queue corresponding to the uplink bandwidth adjustment condition.
[0166] Figure 8 A schematic diagram of a sampling point queue in a specific embodiment of the present disclosure is shown. By maintaining a fixed-length first-in-first-out sampling point queue, when the bandwidth increase or decrease condition is met, the timestamp of the corresponding time point is placed in the sampling point queue.
[0167] Step S720: When the length of the sampling point queue reaches the queue length threshold, the first time point corresponding to the bandwidth adjustment sampling point at the head of the queue is obtained.
[0168] After the sampling point queue reaches the preset maximum length, a judgment is made at a fixed frequency to obtain the timestamp of the head element of the queue.
[0169] Step S730: If the first time point is within the valid time range, determine the next time point of the current time point as the bandwidth adjustment time point.
[0170] If the timestamp of the head element is within the valid time range T, it is considered that the time for bandwidth adjustment has arrived, and the bandwidth can be increased or decreased.
[0171] Designing a sampling point queue can further rationalize the timing of bandwidth adjustment. The time point that meets the conditions is set as the bandwidth adjustment sampling point. When the sampling point exceeds the time threshold, it is considered to meet the adjustment timing, thereby ensuring that the detection results have small fluctuations and are smoother and more reliable.
[0172] In this example implementation, Fig. 9 As shown, the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point is adjusted, which may specifically include the following steps:
[0173] Step S910: Obtain the bandwidth difference between the confirmed bandwidth at the current time point and the maximum available uplink bandwidth.
[0174] When adjusting the maximum available uplink bandwidth, a bandwidth difference between the confirmed bandwidth at the current time point and the maximum available uplink bandwidth may be first obtained.
[0175] Step S920: Determine the bandwidth adjustment ratio corresponding to the bandwidth adjustment time point according to the bandwidth difference.
[0176] The corresponding bandwidth adjustment ratio may be determined according to the bandwidth difference, for example, 5% or 10%. The larger the bandwidth difference, the larger the bandwidth adjustment ratio.
[0177] Step S930: Adjust the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point according to the bandwidth adjustment ratio.
[0178] The maximum available uplink bandwidth is increased quickly or slowly according to the relationship between the maximum available uplink bandwidth and the ACK bandwidth at the current time point, so as to quickly reach the target maximum available uplink.
[0179] After the bandwidth adjustment opportunity is reached, Fig.10 The upper and lower limits shown can be used to increase or decrease the bandwidth in appropriate proportions.
[0180] In this example implementation, the adjustment upper limit of the maximum available uplink bandwidth can be determined according to the bandwidth reported by the server. When increasing the bandwidth, the adjusted maximum available uplink bandwidth cannot be greater than the bandwidth reported by the manufacturer.
[0181] In this example implementation, the adjustment lower limit of the maximum available uplink bandwidth can be determined based on the initial value of the maximum available uplink bandwidth and the confirmed bandwidth. When reducing the bandwidth, the adjusted maximum available uplink bandwidth cannot be less than the initial value bandwidth. At the same time, the maximum available uplink bandwidth should reflect the actual service uplink capability of the server, so it cannot be less than the ACK bandwidth when reducing. It is unreasonable to be less than this value.
[0182] In this example implementation, all network quality parameter thresholds and bandwidth adjustment ranges can be configured and adjusted, and can also be dynamically adjusted according to specific online conditions, so as to accurately reflect the uplink capability of the server.
[0183] like Fig.11Shown is a complete flow chart of a bandwidth adjustment method in a specific implementation of the present disclosure. The increase and decrease of the uplink bandwidth is completed by using real-time network quality parameters and bandwidth information to perform smoothing and other operations, wherein the network quality parameters include: retransmission rate, packet loss rate, etc., and the bandwidth information includes: current service bandwidth, network card bandwidth, etc. When the service quality deteriorates or the bandwidth approaches the hardware network card bandwidth, the maximum available uplink bandwidth will be reduced to near the actual bandwidth that can complete normal service, indicating that the current server is overloaded. It is difficult to complete normal service in this state. The scheduling score should be reduced and the client requests should be reduced; when the service quality is high or normal, the maximum available uplink bandwidth will be slightly higher than the actual service bandwidth, indicating that the current server can provide normal service capabilities. In this state, the scheduling score can be appropriately increased to increase client requests.
[0184] In this example implementation, under the premise of not clearly defining the bandwidth upper limit, the server can complete the detection and adjustment of the maximum available uplink bandwidth through its own network quality parameters. The maximum available uplink bandwidth obtained by the bandwidth adjustment method in this example implementation can accurately determine the uplink capacity of the server. When the service quality is good, the maximum available uplink bandwidth will increase with the increase of the service bandwidth. When the service quality deteriorates, the maximum available uplink bandwidth will determine the current uplink capacity based on the quality data, and will not fluctuate arbitrarily, always accurately reflecting the real service uplink capacity.
[0185] In terms of quantitative analysis, after the server implements the technical solution in the embodiment of this example, the bandwidth reported by the manufacturer is 24Mbps, the packet loss rate threshold is given as 15%, the ACK rate threshold is given as 80%, and the bandwidth increase and decrease ratio is 5%. The data obtained is as follows: Fig.12 As shown, compared with the ACK bandwidth and the manufacturer-reported bandwidth, the maximum available uplink bandwidth obtained by using the bandwidth adjustment method in this example implementation is approximately 20 Mbps, and is more stable and accurate, which is in line with expectations.
[0186] In this example implementation, the maximum available uplink bandwidth can be adjusted in real time on the server side, or the network quality parameters of the server side can be synchronized to the scheduling side. After the scheduling side completes the detection of the maximum available uplink bandwidth of the server side, it is transmitted back to the server side. This is not specifically limited in this example implementation.
[0187] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0188] Furthermore, the present disclosure also provides a bandwidth adjustment device. Fig.13 As shown, the bandwidth adjustment device may include a network parameter acquisition module 1310, an adjustment condition judgment module 1320, an adjustment sampling point determination module 1330, and an uplink bandwidth adjustment module 1340. Among them:
[0189] The network parameter acquisition module 1310 is configured to acquire network parameters at a current time point and a maximum available uplink bandwidth corresponding to the current time point, wherein the network parameters include network quality parameters and service bandwidth;
[0190] The adjustment condition determination module 1320 is configured to determine whether the current time point satisfies the uplink bandwidth adjustment condition according to the network quality parameter, service bandwidth and maximum available uplink bandwidth at the current time point;
[0191] The adjustment sampling point determination module 1330 is configured to determine the current time point as the bandwidth adjustment sampling point if the current time point meets the uplink bandwidth adjustment condition;
[0192] The uplink bandwidth adjustment module 1340 is configured to determine a bandwidth adjustment time point according to a plurality of bandwidth adjustment sampling points, and adjust the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point.
[0193] In some exemplary embodiments of the present disclosure, a bandwidth adjustment device provided by the present disclosure may further include a bandwidth adjustment starting module, which may include a bandwidth initial value determination unit and an adjustment start time determination unit.
[0194] The bandwidth initial value determination unit is configured to obtain the reported bandwidth of the server and determine the initial value of the maximum available uplink bandwidth according to the reported bandwidth;
[0195] The adjustment start time determining unit is configured to start adjusting the maximum available uplink bandwidth when the service bandwidth reaches the initial value of the maximum available uplink bandwidth.
[0196] In some exemplary embodiments of the present disclosure, the network parameter acquisition module 1310 may include a historical parameter acquisition unit, a parameter prediction value determination unit, and a network parameter determination unit.
[0197] The historical parameter acquisition unit is configured to acquire actual network parameters at a plurality of historical time points adjacent to the current time point;
[0198] The parameter prediction value determination unit is configured to obtain a network parameter prediction value at a current time point based on actual network parameters at multiple historical time points and weight parameters corresponding to the multiple historical time points respectively;
[0199] The network parameter determination unit is configured to use the predicted value of the network parameter at the current time point as the network parameter at the current time point.
[0200] In some exemplary embodiments of the present disclosure, the network parameter acquisition module 1310 may further include a weight parameter determination unit configured to determine a weight parameter corresponding to a historical time point according to a time interval between the historical time point and the current time point.
[0201] In some exemplary embodiments of the present disclosure, the network parameter acquisition module 1310 may further include a weight parameter adjustment unit configured to adjust the weight parameter corresponding to each historical time point according to the number of historical time points.
[0202] In some exemplary embodiments of the present disclosure, the adjustment condition determination module 1320 may include a bandwidth utilization determination unit and an adjustment condition determination unit.
[0203] The bandwidth utilization determination unit is configured to obtain the bandwidth utilization at the current time point according to the network quality parameter, the service bandwidth and the maximum available uplink bandwidth at the current time point;
[0204] The adjustment condition determination unit is configured to determine whether the current time point satisfies the uplink bandwidth adjustment condition according to the bandwidth utilization rate at the current time point and the bandwidth utilization rate threshold.
[0205] In some exemplary embodiments of the present disclosure, the bandwidth utilization determination unit may include a confirmation bandwidth determination unit and a confirmation bandwidth utilization determination unit.
[0206] The confirmation bandwidth determination unit is configured to obtain the confirmation bandwidth at the current time point according to the data confirmation rate and the service bandwidth at the current time point;
[0207] The confirmed bandwidth utilization determining unit is configured to obtain the confirmed bandwidth utilization at a current time point according to a ratio of the confirmed bandwidth to the maximum available uplink bandwidth.
[0208] In some exemplary embodiments of the present disclosure, the adjustment condition determination unit may include a first adjustment condition determination unit and a second adjustment condition determination unit.
[0209] The first adjustment condition judgment unit is configured to determine that the current time point satisfies the first uplink bandwidth adjustment condition if the bandwidth utilization at the current time point is greater than the bandwidth utilization upper limit threshold and the packet loss rate is less than the packet loss rate threshold;
[0210] The second adjustment condition judgment unit is configured to determine that the current time point meets the second uplink bandwidth adjustment condition if the bandwidth utilization at the current time point is less than the bandwidth utilization lower limit threshold and the packet loss rate is greater than the packet loss rate threshold.
[0211] In some exemplary embodiments of the present disclosure, the sampling point adjustment determination module 1330 may include a bandwidth increase sampling point determination unit and a bandwidth decrease sampling point determination unit.
[0212] The bandwidth increase sampling point determination unit is configured to determine the current time point as the bandwidth increase sampling point if the current time point meets the first uplink bandwidth adjustment condition;
[0213] The bandwidth reduction sampling point determining unit is configured to determine the current time point as the bandwidth reduction sampling point if the current time point meets the second uplink bandwidth adjustment condition.
[0214] In some exemplary embodiments of the present disclosure, the uplink bandwidth adjustment module 1340 may include a sampling point queue determination unit, a first time point determination unit, and a bandwidth adjustment time point determination unit.
[0215] in:
[0216] The sampling point queue determination unit is configured to put the bandwidth adjustment sampling point into the sampling point queue corresponding to the uplink bandwidth adjustment condition;
[0217] The first time point determining unit is configured to obtain a first time point corresponding to a bandwidth adjustment sampling point at the head of the queue when the length of the sampling point queue reaches a queue length threshold;
[0218] The bandwidth adjustment time point determining unit is configured to determine a time point next to the current time point as the bandwidth adjustment time point if the first time point is within the valid time range.
[0219] In some exemplary embodiments of the present disclosure, the uplink bandwidth adjustment module 1340 may further include a bandwidth difference determination unit, a bandwidth adjustment ratio determination unit, and an uplink bandwidth adjustment unit.
[0220] The bandwidth difference determination unit is configured to obtain a bandwidth difference between the confirmed bandwidth at a current time point and the maximum available uplink bandwidth;
[0221] The bandwidth adjustment ratio determination unit is configured to determine the bandwidth adjustment ratio corresponding to the bandwidth adjustment time point according to the bandwidth difference;
[0222] The uplink bandwidth adjustment unit is configured to adjust the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point according to the bandwidth adjustment ratio.
[0223] In some exemplary embodiments of the present disclosure, the uplink bandwidth adjustment module 1340 may further include an adjustment upper limit value determination unit and an adjustment lower limit value determination unit.
[0224] The adjustment upper limit value determining unit is configured to determine the adjustment upper limit value of the maximum available uplink bandwidth according to the reported bandwidth of the server;
[0225] The adjustment lower limit value determining unit is configured to determine the adjustment lower limit value of the maximum available uplink bandwidth according to the initial value of the maximum available uplink bandwidth and the confirmed bandwidth.
[0226] The specific details of each module / unit in the above bandwidth adjustment device have been described in detail in the corresponding method embodiment part, and will not be repeated here.
[0227] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0228] Fig.14 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure is shown.
[0229] It should be noted that Fig.14 The computer system 1400 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0230] like Fig.14 As shown, the computer system 1400 includes a central processing unit (CPU) 1401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1402 or the program loaded from the storage part 1408 to the random access memory (RAM) 1403. In the RAM 1403, various programs and data required for system operation are also stored. The CPU 1401, the ROM 1402, and the RAM 1403 are connected to each other through a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.
[0231] The following components are connected to the I / O interface 1405: an input section 1406 including a keyboard, a mouse, etc.; an output section 1407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1408 including a hard disk, etc.; and a communication section 1409 including a network interface card such as a LAN card, a modem, etc. The communication section 1409 performs communication processing via a network such as the Internet. A drive 1410 is also connected to the I / O interface 1405 as needed. A removable medium 1411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1410 as needed, so that a computer program read therefrom is installed into the storage section 1408 as needed.
[0232] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 1409, and / or installed from a removable medium 1411. When the computer program is executed by a central processing unit (CPU) 1401, various functions defined in the system of the present disclosure are executed.
[0233] The exemplary embodiments of the present disclosure also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the bandwidth adjustment method is implemented.
[0234] In one embodiment, the computer program product may be a tangible product containing a computer program, such as a computer-readable storage medium storing a computer program. The readable storage medium may be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid-state drive (SSD), and the like. Exemplarily, the computer program product may be implemented as a non-volatile storage medium storing a computer program, such as a read-only memory, a NAND flash memory, and the like.
[0235] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as a digital file storing an executable file, an installation package, etc. of the computer program.
[0236] The code of the computer program can be written in one or more programming languages. Programming languages such as C language, Java, C++, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., an Internet connection provided by an operator).
[0237] The computer program may be carried or transmitted via electrical, magnetic, optical, electromagnetic, infrared, or other signals. The electronic device may convert the signal carrying the computer program into a digital signal, thereby running the computer program. When the computer program is run on an electronic device, its code is used to enable the electronic device to execute (more specifically, the processor of the electronic device may execute) the method steps of various exemplary embodiments of the present disclosure, such as the above-mentioned bandwidth adjustment method.
[0238] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0239] It should be noted that, although several modules of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules described above can be concretized in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules to be concretized.
[0240] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0241] It should be understood that the present disclosure is not limited to the exact structures that have been 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 present disclosure is limited only by the appended claims.
Claims
1. A bandwidth adjustment method, characterized in that: include: Acquire network parameters at a current time point and a maximum available uplink bandwidth corresponding to the current time point, wherein the network parameters include network quality parameters and service bandwidth; Determining whether the current time point satisfies an uplink bandwidth adjustment condition according to the network quality parameter, the service bandwidth, and the maximum available uplink bandwidth at the current time point; If the current time point satisfies the uplink bandwidth adjustment condition, determining the current time point as a bandwidth adjustment sampling point; A bandwidth adjustment time point is determined according to the plurality of bandwidth adjustment sampling points, and the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point is adjusted.
2. The bandwidth adjustment method according to claim 1, characterized in that: The method further comprises: Obtaining a reported bandwidth of the server, and determining an initial value of the maximum available uplink bandwidth according to the reported bandwidth; When the service bandwidth reaches the initial value of the maximum available uplink bandwidth, the maximum available uplink bandwidth starts to be adjusted.
3. The bandwidth adjustment method according to claim 1, characterized in that: Get the network parameters at the current time point, including: Acquire actual network parameters of a plurality of historical time points adjacent to the current time point; Obtaining a predicted value of the network parameter at the current time point according to the actual network parameters at the multiple historical time points and the weight parameters respectively corresponding to the multiple historical time points; The predicted value of the network parameter at the current time point is used as the network parameter at the current time point.
4. The bandwidth adjustment method according to claim 3, characterized in that: The method further comprises: A weight parameter corresponding to the historical time point is determined according to the time interval between the historical time point and the current time point.
5. The bandwidth adjustment method according to claim 4, characterized in that: The method further comprises: The weight parameters corresponding to the respective historical time points are adjusted according to the number of the historical time points.
6. The bandwidth adjustment method according to claim 1, characterized in that: The determining, according to the network quality parameter, the service bandwidth, and the maximum available uplink bandwidth at the current time point, whether the current time point satisfies an uplink bandwidth adjustment condition includes: Obtaining bandwidth utilization at the current time point according to the network quality parameter at the current time point, the service bandwidth, and the maximum available uplink bandwidth; According to the bandwidth utilization rate at the current time point and the bandwidth utilization rate threshold, it is determined whether the current time point meets the uplink bandwidth adjustment condition.
7. The bandwidth adjustment method according to claim 6, characterized in that: The network quality parameter includes a data confirmation rate, and obtaining the bandwidth utilization rate at the current time point according to the network quality parameter at the current time point, the service bandwidth, and the maximum available uplink bandwidth includes: Obtaining a confirmed bandwidth at the current time point according to the data confirmation rate and the service bandwidth at the current time point; The confirmed bandwidth utilization rate at the current time point is obtained according to the ratio of the confirmed bandwidth to the maximum available uplink bandwidth.
8. The bandwidth adjustment method according to claim 6, characterized in that: The network quality parameter includes a packet loss rate, and judging whether the current time point satisfies an uplink bandwidth adjustment condition according to the bandwidth utilization rate and the bandwidth utilization threshold at the current time point includes: If the bandwidth utilization rate at the current time point is greater than the bandwidth utilization rate upper limit threshold, and the packet loss rate is less than the packet loss rate threshold, it is determined that the current time point meets the first uplink bandwidth adjustment condition; If the bandwidth utilization rate at the current time point is less than the bandwidth utilization rate lower limit threshold, and the packet loss rate is greater than the packet loss rate threshold, it is determined that the current time point meets the second uplink bandwidth adjustment condition.
9. The bandwidth adjustment method according to claim 8, characterized in that: If the current time point satisfies the uplink bandwidth adjustment condition, determining the current time point as a bandwidth adjustment sampling point includes: If the current time point satisfies the first uplink bandwidth adjustment condition, determining the current time point as a bandwidth increase sampling point; If the current time point satisfies the second uplink bandwidth adjustment condition, the current time point is determined as a bandwidth reduction sampling point.
10. The bandwidth adjustment method according to claim 1, characterized in that: The determining the bandwidth adjustment time point according to the plurality of bandwidth adjustment sampling points comprises: Putting the bandwidth adjustment sampling point into a sampling point queue corresponding to the uplink bandwidth adjustment condition; When the length of the sampling point queue reaches a queue length threshold, obtaining a first time point corresponding to the bandwidth adjustment sampling point at the head of the queue; If the first time point is within the valid time range, the next time point of the current time point is determined as the bandwidth adjustment time point.
11. The bandwidth adjustment method according to claim 1, characterized in that: The adjusting the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point includes: Obtaining a bandwidth difference between the confirmed bandwidth at the current time point and the maximum available uplink bandwidth; Determining a bandwidth adjustment ratio corresponding to the bandwidth adjustment time point according to the bandwidth difference; The maximum available uplink bandwidth corresponding to the bandwidth adjustment time point is adjusted according to the bandwidth adjustment ratio.
12. The bandwidth adjustment method according to claim 11, characterized in that: The method further comprises: Determining an adjustment upper limit value of the maximum available uplink bandwidth according to the reported bandwidth of the server; An adjustment lower limit value of the maximum available uplink bandwidth is determined according to the initial value of the maximum available uplink bandwidth and the confirmed bandwidth.
13. A bandwidth adjustment device, characterized in that: include: A network parameter acquisition module, configured to execute acquisition of network parameters at a current time point and a maximum available uplink bandwidth corresponding to the current time point, wherein the network parameters include network quality parameters and service bandwidth; An adjustment condition judgment module is configured to judge whether the current time point meets the uplink bandwidth adjustment condition according to the network quality parameter, the service bandwidth and the maximum available uplink bandwidth at the current time point; an adjustment sampling point determination module, configured to determine the current time point as a bandwidth adjustment sampling point if the current time point satisfies the uplink bandwidth adjustment condition; The uplink bandwidth adjustment module is configured to determine a bandwidth adjustment time point according to the plurality of bandwidth adjustment sampling points, and adjust the maximum available uplink bandwidth corresponding to the bandwidth adjustment time point.
14. An electronic device, characterized in that: include: processor; as well as A memory, used to store one or more programs, when the one or more programs are executed by the processor, enables the processor to implement the bandwidth adjustment method according to any one of claims 1 to 12.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the bandwidth adjustment method according to any one of claims 1 to 12 is implemented.
