Download bandwidth adjustment method and device, electronic device and storage medium

By adjusting the download bandwidth in real time and according to the network transmission rate and trend of the cloud application, the transmission bandwidth of the cloud application is prioritized, which solves the technical problem of cloud application experience and download rate running in parallel, and achieves an efficient download rate.

CN118509327BActive Publication Date: 2024-10-29HAIMA CLOUD TIANJIN INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410978759.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-29
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

In the process of cloud application experience, how to achieve the highest possible download rate while ensuring the cloud application experience has become an urgent technical issue to be solved.

Method used

By estimating the sending rate of the current network link of the cloud application in real time, and calculating the download bandwidth based on the sending rate, the download bandwidth is adjusted to prioritize the sending bandwidth required by the cloud application, including increasing the bandwidth when the sending rate is equal to the set bandwidth, and increasing the bandwidth when the sending rate is greater than The bandwidth remains unchanged when the bandwidth is set, the bandwidth is reduced when the sending rate is less than the set bandwidth and has a downward trend, and remains unchanged when the sending rate is less than the set bandwidth and has an upward trend.

Benefits of technology

When users experience applications through cloud applications in the app store and download applications in parallel, priority is given to allocating the transmission bandwidth required by the cloud application, so as to achieve the highest possible download rate while ensuring the cloud application user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118509327B_ABST
    Figure CN118509327B_ABST
Patent Text Reader

Abstract

The present application provides a download bandwidth adjustment method and device, an electronic device and a storage medium, the method comprising: in the process of running a cloud application (including real-time streaming applications such as cloud games and cloud computers), estimating in real time the sending rate of the current network link of the cloud application; calculating the download bandwidth according to the sending rate, and sending the download bandwidth to the application download client, so that the application download client downloads the application according to the adjusted download bandwidth, and when the user experiences the application and downloads the application in parallel through the cloud application in the application store, the sending bandwidth required by the cloud application (that is, the sending bandwidth in the real-time scenario of sending the cloud application screen to the terminal) can be preferentially allocated, so as to achieve the download rate (that is, the download rate of the non-real-time cloud application screen download scenario of downloading the cloud application installation package) as large as possible while ensuring the user experience of the cloud application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a download bandwidth adjustment method and device, electronic equipment and storage medium. Background Art

[0002] With the development of cloud technology, more and more cloud applications (such as cloud games) are appearing in people's lives. Cloud applications are based on cloud computing and run in the virtual machine / container of the cloud server. The virtual machine / container completes all the calculations of the cloud application screen and generates each frame of the screen image, thereby forming an image stream composed of continuous image frames. The cloud server sends the image stream to the user terminal, and the user terminal displays each frame of the screen image in sequence. In this mode, the user terminal actually only needs to send the user's operation instructions to the cloud server, and then receive the image stream from the cloud server for playback.

[0003] In applications like app stores, cloud applications are used as a means for users to experience applications. From the perspective of promoting applications in app stores, it is hoped that users will download applications while experiencing cloud applications, so as to achieve application distribution and promotion. In this scenario, how to achieve the highest possible download rate while ensuring the cloud application experience has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of the technical problems existing in the prior art, the embodiments of the present application provide a download bandwidth adjustment method and device, an electronic device and a storage medium.

[0005] In a first aspect, an embodiment of the present application provides a download bandwidth adjustment method, including:

[0006] During the operation of cloud applications, the sending rate of the current network link of the cloud application is estimated in real time;

[0007] Calculate the download bandwidth according to the sending rate, and send the download bandwidth to the application download client, so that the application download client downloads the application according to the download bandwidth;

[0008] The step of calculating the download bandwidth according to the sending rate includes:

[0009] If it is determined that the transmission rate is equal to the set bandwidth, the download bandwidth is increased; or

[0010] If it is determined that the transmission rate is greater than the product of the set bandwidth and the first ratio, the download bandwidth is maintained unchanged; or

[0011] If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and keeps a downward trend, the download bandwidth is reduced; or

[0012] If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and maintains an upward trend, the download bandwidth is maintained unchanged.

[0013] In a second aspect, an embodiment of the present application further provides a download bandwidth adjustment device, including:

[0014] An estimation unit, used for estimating the sending rate of the current network link of the cloud application in real time during the operation of the cloud application;

[0015] A calculation unit, used to calculate a download bandwidth according to a sending rate, and send the download bandwidth to an application download client, so that the application download client downloads the application according to the download bandwidth;

[0016] The step of calculating the download bandwidth according to the sending rate includes:

[0017] If it is determined that the transmission rate is equal to the set bandwidth, the download bandwidth is increased; or

[0018] If it is determined that the transmission rate is greater than the product of the set bandwidth and the first ratio, the download bandwidth is maintained unchanged; or

[0019] If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and keeps a downward trend, the download bandwidth is reduced; or

[0020] If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and maintains an upward trend, the download bandwidth is maintained unchanged.

[0021] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the download bandwidth adjustment method described in the first aspect are executed.

[0022] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the download bandwidth adjustment method as described in the first aspect.

[0023] Through the above scheme, the download bandwidth used for downloading applications is adjusted according to the sending rate of the current network link of the cloud application, the size relationship of the set bandwidth, and the changing trend of the sending rate. Therefore, when the user experiences the application and downloads the application through the cloud application in the application store in parallel, the sending bandwidth required by the cloud application can be preferentially allocated, so as to achieve the highest possible download rate while ensuring the user experience of the cloud application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A network architecture diagram provided for an embodiment of the present application;

[0025] Figure 2 A flowchart of an embodiment of a download bandwidth adjustment method provided in an embodiment of the present application;

[0026] Figure 3 A schematic diagram of the structure of an embodiment of a download bandwidth adjustment device provided in an embodiment of the present application;

[0027] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0029] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0030] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0031] Figure 1 A network architecture diagram provided for an embodiment of the present application, refer to Figure 1As shown in the figure, the cloud application server and the application distribution server are deployed separately, and there is no interaction between the two. Cloud applications are running in the cloud application server, and users experience cloud applications through the cloud application client of the client. At the same time, the application download client runs in the client, and users download applications from the application distribution server through the application download client. In order to achieve the highest possible download rate while ensuring the cloud application experience, it is necessary to determine the appropriate download bandwidth. After determining the download bandwidth, the cloud application client can send the download bandwidth to the application download client, and the application download client downloads the application according to the download bandwidth.

[0032] To determine the appropriate download bandwidth, refer to Figure 2 As shown, it is a flow chart of a download bandwidth adjustment method provided in an embodiment of the present application. The download bandwidth adjustment method can be applied to a cloud application server or client, including:

[0033] S20, during the operation of the cloud application, estimating in real time the sending rate of the current network link of the cloud application;

[0034] S21, calculating the download bandwidth according to the sending rate, and sending the download bandwidth to the application download client, so that the application download client downloads the application according to the download bandwidth;

[0035] The step of calculating the download bandwidth according to the sending rate includes:

[0036] If it is determined that the transmission rate is equal to the set bandwidth, the download bandwidth is increased; or

[0037] If it is determined that the transmission rate is greater than the product of the set bandwidth and the first ratio, the download bandwidth is maintained unchanged; or

[0038] If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and keeps a downward trend, the download bandwidth is reduced; or

[0039] If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and maintains an upward trend, the download bandwidth is maintained unchanged.

[0040] In this embodiment, it should be noted that during the operation of the cloud application, the change in the cloud application screen sending rate reflects the network status of the cloud application. When the network is congested, the delay becomes large, or the packet is lost, the sending rate will be reduced. Therefore, it can be said that the change in the sending rate is a direct reflection of the cloud application experience. During the operation of the cloud application, the cloud application screen sending rate is used as the basis for adjusting the download bandwidth. The cloud application server or client adjusts the download bandwidth according to the cloud application screen sending rate in a fixed period, and feeds back the download bandwidth to the application download client.

[0041] The download bandwidth adjustment method provided in the embodiment of the present application adjusts the download bandwidth used by the download application according to the sending rate of the current network link of the cloud application, as well as the size relationship of the set bandwidth and the changing trend of the sending rate. Therefore, when the user experiences the application and downloads the application in parallel through the cloud application in the application store, the sending bandwidth required by the cloud application is preferentially allocated, thereby achieving the maximum possible download rate while ensuring the user experience of the cloud application.

[0042] Based on the foregoing method embodiment, a method for determining whether the sending rate maintains a downward trend or an upward trend may include:

[0043] Calculate the evaluation index Trend of the sending rate trend, where the calculation formula of the evaluation index Trend is Trend=CoVar / Var, , , t_i represents the time corresponding to the i-th sampling point in the time window, i∈(1, 2,…, N), N represents the number of sampling points in the time window, avgt=[(t_1-t_0)+(t_2-t_0)+…+(t_N-t_0)] / N, t_0 represents the initial time of the time window, BWE_i represents the sending rate corresponding to the i-th sampling point in the time window, avgB=(BWE_1+BWE_2+…+BWE_N) / N;

[0044] If it is determined that the evaluation indicator Trend is less than 0, it is determined that the sending rate maintains a downward trend; or if it is determined that the evaluation indicator Trend is greater than 0, it is determined that the sending rate maintains an upward trend.

[0045] Based on the foregoing method embodiment, increasing the download bandwidth may include:

[0046] increasing the download bandwidth according to a second ratio;

[0047] The reducing the download bandwidth includes:

[0048] The download bandwidth is reduced according to the third ratio.

[0049] Based on the foregoing method embodiment, the value range of the second ratio is [10%, 20%], and the value range of the third ratio is [10%, 20%].

[0050] Based on the aforementioned method embodiment, the first ratio may be 80%.

[0051] Based on the foregoing method embodiment, the method may further include:

[0052] When the cloud application client is started first and the application download client is started later, the initial value of the download bandwidth is the difference between the total effective bandwidth of the cloud application's current network link and the cloud application's reserved bandwidth; or

[0053] When the application download client is started first and the cloud application client is started later, the initial value of the download bandwidth is the difference between the configured maximum network bandwidth and the cloud application reserved bandwidth.

[0054] In this embodiment, it should be noted that the total effective bandwidth of the current network link of the cloud application can be determined by a bandwidth detection method. The cloud application reserved bandwidth can be set as needed, for example, to 10 Mbps. The configured maximum network bandwidth can be set as needed, for example, to 50 Mbps.

[0055] Based on the above method embodiment, the

[0056] Real-time estimation of the sending rate of the current network link of the cloud application, including:

[0057] Obtaining an estimated bandwidth value of the current network link of the cloud application based on network packet loss, recorded as a first estimated bandwidth value, and obtaining an estimated bandwidth value of the current network link of the cloud application based on network delay, recorded as a second estimated bandwidth value;

[0058] The sending rate is determined based on the first bandwidth estimate and the second bandwidth estimate.

[0059] In this embodiment, obtaining the first bandwidth estimation value based on network packet loss may specifically include the following steps:

[0060] (1) Obtaining the packet loss rate;

[0061] (2) if it is determined that the learned packet loss rate is greater than or equal to the fourth ratio, determining the first bandwidth estimation value to be the product of the first bandwidth estimation value calculated last time and the first value; or

[0062] If it is determined that the learned packet loss rate is less than or equal to the fifth ratio, determining the first bandwidth estimation value to be the product of the first bandwidth estimation value calculated last time and the second value; or

[0063] If it is determined that the packet loss rate is greater than the fifth ratio and less than the fourth ratio, the first bandwidth estimation value is determined to be the first bandwidth estimation value calculated last time, wherein the fourth ratio is greater than the fifth ratio, the first value is greater than 0 and less than 1, and the second value is greater than 1.

[0064] Obtaining a second bandwidth estimation value based on the network delay may specifically include the following steps:

[0065] If it is determined that the network delay has increased, determining the second bandwidth estimation value to be the product of the second bandwidth estimation value calculated last time and the third value; or

[0066] If it is determined that the network delay remains unchanged, determining the second bandwidth estimation value to be the second bandwidth estimation value calculated last time; or

[0067] If it is determined that the network delay has become smaller, the second bandwidth estimation value is determined to be the product of the second bandwidth estimation value calculated last time and a fourth value, wherein the network delay is the difference between the receiving time interval and the sending time interval of adjacent data packets, the third value is greater than 0 and less than 1, and the fourth value is greater than 1.

[0068] After the first bandwidth estimation value and the second bandwidth estimation value are determined, a smaller value of the first bandwidth estimation value and the second bandwidth estimation value may be determined as the sending rate.

[0069] It should be noted that the method for calculating the estimated value of cloud application bandwidth may include the following steps:

[0070] The estimated bandwidth of the cloud application is recorded as BWE (BandWidth Estimate). When the cloud application is started, BWE0 = the initial configuration bandwidth.

[0071] Step 1: Set BWE0×preset value (such as 1.2) as the upper bandwidth and use the Probe method to detect the actual network bandwidth. The Probe bandwidth detection method means sending a certain amount of data at a higher rate and using the data volume / receiving time as the bandwidth estimation value, called ProbeBW, and record BWE=ProbeBW.

[0072] Step 2: Adjust BWE based on packet loss and delay. The two adjustment rules are as follows:

[0073] (1) Bandwidth estimation based on packet loss. When there is packet loss, the packet loss rate is expressed as Lost. t express

[0074] 1) When Lost t ≥ the fourth ratio (e.g. 10%), BWE t = first value (e.g. 0.5) × BWE t-1 ;

[0075] 2) When Lost t ≤5th ratio (e.g. 2%), BWE t = second value (e.g. 1.05) × BWE t-1 ;

[0076] 3) When the fifth ratio is less than Lost t <4th ratio, BWEt =BWE t-1 .

[0077] (2) Delay-based bandwidth estimation: The difference between the time interval between receiving two adjacent data packets (i.e., the time interval between receiving two adjacent data packets by the client) and the time interval between sending two adjacent data packets (i.e., the time interval between sending two adjacent data packets by the cloud application server) is used as a measure of delay to estimate whether the delay has increased. The BWE is adjusted in three cases:

[0078] 1) If the delay increases: it is considered that the transmission is congested, and the bandwidth estimate needs to be lowered: BWE t =BWE t-1 × the third value (for example, 0.85);

[0079] 2) If it remains unchanged, keep the bandwidth estimate unchanged: BWE t =BWE t-1 ;

[0080] 3) If the delay becomes smaller, then BWE t = the fourth value (e.g. 1.02) × BWE t-1 , BWE t-1 Indicates the bandwidth estimate calculated last time, BWE t Indicates the estimated bandwidth value that needs to be calculated currently.

[0081] Step 3: Use the BWE calculated in step 2 using the two adjustment rules t The smaller value of is used as the sending rate.

[0082] Reference Figure 3 FIG. 1 is a schematic diagram of a structure of a download bandwidth adjustment device provided in an embodiment of the present application, the device comprising:

[0083] The estimation unit 30 is used to estimate the sending rate of the current network link of the cloud application in real time during the operation of the cloud application;

[0084] A calculation unit 31 is used to calculate the download bandwidth according to the sending rate, and send the download bandwidth to the application download client, so that the application download client downloads the application according to the download bandwidth;

[0085] The step of calculating the download bandwidth according to the sending rate includes:

[0086] If it is determined that the transmission rate is equal to the set bandwidth, the download bandwidth is increased; or

[0087] If it is determined that the transmission rate is greater than the product of the set bandwidth and the first ratio, the download bandwidth is maintained unchanged; or

[0088] If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and keeps a downward trend, the download bandwidth is reduced; or

[0089] If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and maintains an upward trend, the download bandwidth is maintained unchanged.

[0090] The download bandwidth adjustment device provided in the embodiment of the present application adjusts the download bandwidth used by the download application according to the sending rate of the current network link of the cloud application, as well as the size relationship of the set bandwidth and the changing trend of the sending rate. Therefore, when the user experiences the application and downloads the application through the cloud application in the application store in parallel, the sending bandwidth required by the cloud application is preferentially allocated, thereby achieving the maximum possible download rate while ensuring the user experience of the cloud application.

[0091] The download bandwidth adjustment device provided in the embodiment of the present application has the same implementation process as the download bandwidth adjustment method provided in the embodiment of the present application, and can achieve the same effect as the download bandwidth adjustment method provided in the embodiment of the present application, which will not be repeated here.

[0092] like Figure 4 As shown, an electronic device provided by an embodiment of the present application includes: a processor 40, a memory 41 and a bus 42, wherein the memory 41 stores machine-readable instructions executable by the processor 40, and when the electronic device is running, the processor 40 communicates with the memory 41 through the bus 42, and the processor 40 executes the machine-readable instructions to perform the steps of the download bandwidth adjustment method as described above.

[0093] Specifically, the memory 41 and the processor 40 can be general-purpose memories and processors, which are not specifically limited here. When the processor 40 runs the computer program stored in the memory 41, the download bandwidth adjustment method can be executed.

[0094] Corresponding to the above-mentioned download bandwidth adjustment method, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned download bandwidth adjustment method are executed.

[0095] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A download bandwidth adjustment method, characterized in that: include: During the operation of cloud applications, the sending rate of the current network link of the cloud application is estimated in real time; Calculate the download bandwidth according to the sending rate, and send the download bandwidth to the application download client, so that the application download client downloads the application according to the download bandwidth; The step of calculating the download bandwidth according to the sending rate includes: If it is determined that the transmission rate is equal to the set bandwidth, the download bandwidth is increased; or If it is determined that the transmission rate is greater than the product of the set bandwidth and the first ratio, the download bandwidth is maintained unchanged; or If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and keeps a downward trend, the download bandwidth is reduced; or If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and maintains an upward trend, the download bandwidth is maintained unchanged.

2. The method according to claim 1, characterized in that Methods for determining whether the sending rate maintains a downward or upward trend include: Calculate the evaluation index Trend of the sending rate trend, where the calculation formula of the evaluation index Trend is Trend=CoVar / Var, , , t_i represents the time corresponding to the i-th sampling point in the time window, i∈(1, 2,…, N), N represents the number of sampling points in the time window, avgt=[(t_1-t_0)+(t_2-t_0)+…+(t_N-t_0)] / N, t_0 represents the initial time of the time window, BWE_i represents the sending rate corresponding to the i-th sampling point in the time window, avgB=(BWE_1+BWE_2+…+BWE_N) / N; If it is determined that the evaluation indicator Trend is less than 0, it is determined that the sending rate maintains a downward trend; or if it is determined that the evaluation indicator Trend is greater than 0, it is determined that the sending rate maintains an upward trend.

3. The method according to claim 1 or 2, characterized in that The increasing download bandwidth comprises: increasing the download bandwidth according to a second ratio; The reducing the download bandwidth includes: The download bandwidth is reduced according to the third ratio.

4. The method according to claim 3, characterized in that The value range of the second ratio is [10%, 20%], and the value range of the third ratio is [10%, 20%].

5. The method according to claim 1, characterized in that The first ratio is 80%.

6. The method according to claim 1, characterized in that Also includes: When the cloud application client is started first and the application download client is started later, the initial value of the download bandwidth is the difference between the total effective bandwidth of the current network link of the cloud application and the reserved bandwidth of the cloud application; or When the application download client is started first and the cloud application client is started later, the initial value of the download bandwidth is the difference between the configured maximum network bandwidth and the cloud application reserved bandwidth.

7. The method according to claim 1, characterized in that The real-time estimation of the sending rate of the current network link of the cloud application includes: Obtaining an estimated bandwidth value of the current network link of the cloud application based on network packet loss, recorded as a first estimated bandwidth value, and obtaining an estimated bandwidth value of the current network link of the cloud application based on network delay, recorded as a second estimated bandwidth value; The sending rate is determined based on the first bandwidth estimate and the second bandwidth estimate.

8. A download bandwidth adjustment device, characterized in that: include: An estimation unit, used for estimating the sending rate of the current network link of the cloud application in real time during the operation of the cloud application; A calculation unit, used to calculate a download bandwidth according to a sending rate, and send the download bandwidth to an application download client, so that the application download client downloads the application according to the download bandwidth; The step of calculating the download bandwidth according to the sending rate includes: If it is determined that the transmission rate is equal to the set bandwidth, the download bandwidth is increased; or If it is determined that the transmission rate is greater than the product of the set bandwidth and the first ratio, the download bandwidth is maintained unchanged; or If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and keeps a downward trend, the download bandwidth is reduced; or If it is determined that the transmission rate is less than the product of the set bandwidth and the first ratio and maintains an upward trend, the download bandwidth is maintained unchanged.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the download bandwidth adjustment method according to any one of claims 1 to 7 are executed.

10. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the download bandwidth adjustment method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Network bandwidth intelligent sensing distribution method and device in cloud game

    CN117354258A