Cloud desktop optimization method, cloud desktop server and storage medium
By estimating and allocating the network bandwidth between the cloud desktop terminal and the server, and adjusting the data generation rate, the problem of display lag on the cloud desktop terminal is solved, achieving a smooth usage experience under poor network conditions.
Patent Information
- Application Number
- PCT/CN2024/071508
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2024-01-10
- Publication Date
- 2024-09-12
AI Technical Summary
The network condition between the cloud desktop terminal and the cloud desktop server is poor, causing problems such as display freezes and affecting the user experience.
By estimating network bandwidth during the optimization cycle and adjusting the data generation rate of various desktop data based on the bandwidth allocation results, it ensures that data transmission does not exceed the network bandwidth, thereby avoiding network congestion.
It effectively avoids network congestion, provides a smooth user experience, and ensures smooth data transmission even in poor network conditions.
Smart Images

Figure CN2024071508_12092024_PF_FP_ABST
Abstract
Description
Cloud desktop optimization method, server and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 9, 2023, with application number 202310254964.8 and invention name “A cloud desktop optimization method, device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of cloud computing technology, and in particular to a cloud desktop optimization method, server, and storage medium. Background Art
[0003] Cloud desktops, also known as desktop virtualization or cloud computing, are a new alternative to traditional computers. Cloud desktop servers handle data processing and storage, while cloud desktop terminals provide display and keyboard and mouse input. Data transmission between the two relies on a network.
[0004] Currently, due to network instability or bandwidth preemption, the network condition between the cloud desktop terminal and the cloud desktop server may be poor. In this case, problems such as display freeze may occur in the cloud desktop terminal, affecting the user experience.
[0005] Summary of the Invention
[0006] Various aspects of the present application provide a cloud desktop optimization method, a server, and a storage medium for optimizing the user experience of the cloud desktop.
[0007] An embodiment of the present application provides a cloud desktop optimization method, comprising: estimating the network bandwidth between a cloud desktop terminal and a cloud desktop server within a current optimization cycle; performing an allocation operation on the network bandwidth to determine a bandwidth upper limit value allocated to each type of desktop data to be transmitted from the cloud desktop server to the cloud desktop terminal; adjusting a data generation rate for each type of desktop data based on the allocated bandwidth upper limit value; and transmitting the various types of desktop data generated in the cloud desktop server according to the adjusted data generation rate to the cloud desktop terminal.
[0008] An embodiment of the present application also provides a cloud desktop server, comprising a memory and a processor; the memory is used to store one or more computer instructions; the processor is coupled to the memory and is used to execute the one or more computer instructions to implement the aforementioned cloud desktop optimization method.
[0009] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the aforementioned cloud desktop optimization method. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in this application and should not be construed as limiting the scope of this application.
[0011] FIG1 is a flow chart of a cloud desktop optimization method provided by an exemplary embodiment of the present application.
[0012] FIG2 is a logical diagram of a cloud desktop optimization method provided by an exemplary embodiment of the present application.
[0013] FIG3 is a logical diagram of an optional implementation of a cloud desktop optimization method provided by an exemplary embodiment of the present application.
[0014] FIG4 is a schematic structural diagram of a cloud desktop server provided by another exemplary embodiment of the present application. DETAILED DESCRIPTION
[0015] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0016] At present, when the network conditions between the cloud desktop terminal and the cloud desktop server are not good, problems such as display freezes may occur in the cloud desktop terminal, affecting the user experience. To this end, in some embodiments of the present application: cloud desktop optimization can be performed on a periodic basis, and within a single optimization cycle, the available network bandwidth between the cloud desktop terminal and the cloud desktop server can be estimated, and then the network bandwidth can be reasonably allocated to different types of desktop data; moreover, based on the bandwidth allocation result, the data generation rate corresponding to each type of desktop data can be adjusted; and then the various types of desktop data generated in the cloud desktop server according to the adjusted data generation rate are transmitted to the cloud desktop terminal. Based on this, the bandwidth allocation result can be used as a guide to schedule the data generation rate of various types of desktop data from the source, which can effectively prevent the total amount of data sent by the cloud desktop server from exceeding the network bandwidth, thereby avoiding network congestion. In this way, various types of desktop data can be smoothly transmitted to the cloud desktop terminal, and a smooth user experience can be provided to users even when the network conditions are poor.
[0017] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.
[0018] Figure 1 is a flow chart of a cloud desktop optimization method provided by an exemplary embodiment of the present application, and Figure 2 is a logic diagram of a cloud desktop optimization method provided by an exemplary embodiment of the present application. The method can be executed by an optimization device, which can be implemented as software, hardware, or a combination of software and hardware, and can be integrated into a cloud server. Referring to Figure 1, the method may include:
[0019] Step 100: Estimate the network bandwidth between the cloud desktop terminal and the cloud desktop server during the current optimization cycle.
[0020] Step 101: performing an allocation operation on the network bandwidth to determine the upper limit of bandwidth allocated to each type of desktop data to be transmitted from the cloud desktop server to the cloud desktop terminal;
[0021] Step 102: For each type of desktop data, adjust the data generation rate based on the allocated bandwidth upper limit;
[0022] Step 103: Transmit various desktop data generated in the cloud desktop server according to the adjusted data generation rate to the cloud desktop terminal.
[0023] Figure 3 is a logical diagram of an optional implementation method of a cloud desktop optimization method provided by an exemplary embodiment of the present application. Referring to Figure 3, the cloud desktop optimization method provided in this embodiment can be applied to the cloud desktop server side, and the cloud desktop optimization method in this embodiment can be implemented by adding relevant functional modules in the cloud desktop server. These functional modules may include but are not limited to a bandwidth estimation module, a bandwidth allocation module, and a sending module. Of course, this is only an exemplary way of dividing the processing logic in this embodiment, but it should be understood that this embodiment is not limited to this way of dividing, and the processing logic in this embodiment can also be divided into functional modules in other ways. No matter how it is divided, the cloud desktop server in this embodiment can implement the cloud desktop optimization method in this embodiment under the mutual cooperation of the divided functional modules.
[0024] Cloud desktop technology primarily involves cloud desktop servers and cloud desktop terminals. Data exchange between cloud desktop servers and cloud desktop terminals relies on a network. This embodiment focuses on the desktop data transmitted from the cloud desktop server to the cloud desktop terminal. This embodiment proposes optimizing the transmission process of this desktop data to improve the user experience of cloud desktops.
[0025] During the research process, the inventors found that cloud desktop terminals often use wifi to connect to the router, and then use the public network to connect to the cloud desktop server. The stability of wifi and the public network cannot be guaranteed, and there is often a situation where the available bandwidth is sometimes insufficient. There are often situations where multiple cloud desktop terminals access the cloud desktop server in a centralized manner. For example, students in school classrooms use cloud desktops to take online classes, and company employees use cloud desktops for office work at the same time. In these scenarios, the total network entrance and exit bandwidth is generally limited. It is easy for multiple cloud desktop terminals to access at the same time to cause insufficient total bandwidth, and the bandwidth seized by each cloud desktop terminal is very limited. When the cloud desktop terminal copies files or redirects the network from the cloud desktop server, it often fills up the network bandwidth, resulting in no bandwidth available for other desktop data. In these typical usage scenarios of cloud desktops, there are problems with poor network conditions between the cloud desktop terminal and the cloud desktop server, which leads to freezes and unsmooth operations during the use of the cloud desktop, affecting the user experience.
[0026] The cloud desktop optimization method provided in this embodiment can optimize the user experience, especially when the network conditions are poor, and can effectively avoid lag problems, so that users can have a smooth user experience.
[0027] In this embodiment, cloud desktop optimization can be performed on a cycle basis. For ease of description, the technical solution will be described below from the perspective of a single optimization cycle. It should be understood that cloud desktop optimization can be implemented according to the same processing logic in other optimization cycles in this embodiment.
[0028] Referring to Figure 1, in step 100, the network bandwidth between the cloud desktop terminal and the cloud desktop server can be estimated within the current optimization cycle. Step 100 can be implemented by the aforementioned bandwidth estimation module. In this embodiment, various implementation methods can be used to estimate the network card bandwidth.
[0029] Referring to Figure 3, in an exemplary implementation, feedback information sent by the cloud desktop terminal can be received, and the feedback information includes the size information and arrival time information of each data packet received by the cloud desktop terminal from the cloud desktop server; based on the feedback information, the network bandwidth between the cloud desktop terminal and the cloud desktop server is estimated. In this implementation, the cloud desktop terminal can record the size information and arrival time information of each data packet sent to it by the cloud desktop server, and can feed this information back to the cloud desktop server. It can be understood that the feedback information can be used to reflect the actual bandwidth usage between the cloud desktop terminal and the cloud desktop server. In this way, the network bandwidth obtained after estimating the network bandwidth based on the feedback information will be closer to the actual network status between the cloud desktop terminal and the cloud desktop server, thereby providing a more accurate processing basis for subsequent steps.
[0030] In this implementation, an exemplary scheme for estimating network bandwidth based on feedback information may include: dividing a historical period of a specified length selected from the current moment forward into multiple estimation periods; determining the amount of data received by the cloud desktop terminal during each estimation period based on the feedback information; calculating the actual bandwidth used during each estimation period based on the amount of data and the period length; and estimating the network bandwidth between the cloud desktop terminal and the cloud desktop server based on the actual bandwidth used during each of the multiple estimation periods. Optionally, the maximum value among the actual bandwidth used during each of the multiple estimation periods may be selected as the actual bandwidth used during each estimation period. It should be understood that in this exemplary scheme, the actual bandwidth used during each estimation period may essentially be understood as the real-time bandwidth between the cloud desktop terminal and the cloud desktop server, and the maximum value among the actual bandwidth used during each of the multiple estimation periods may reflect the maximum bandwidth used between the cloud desktop terminal and the cloud desktop server. This is because data may not be transmitted evenly during the historical period, but may be concentrated in one or several estimation periods. Therefore, the network bandwidth estimated by this exemplary scheme may be closer to the actual network status between the cloud desktop terminal and the cloud desktop server. Of course, in this exemplary solution, an average value or a median value may be selected from the actual bandwidth usage corresponding to each of the multiple estimation time periods as the actual bandwidth usage corresponding to each of the estimation time periods. This embodiment is not limited thereto.
[0031] In addition, in addition to the above-mentioned network bandwidth estimation based on the size information and arrival information of the data packets actually occurring between the cloud desktop terminal and the cloud desktop server, other implementation methods can also be used in this embodiment to implement network bandwidth estimation, such as the typical BBR (Bottleneck Bandwidth and Round-trip Time) bandwidth estimation technology, etc., which is not limited in this embodiment.
[0032] On this basis, referring to FIG1 , in step 101 , an allocation operation may be performed on the network bandwidth to determine the upper bandwidth limit value allocated to each type of desktop data to be transmitted from the cloud desktop server to the cloud desktop terminal.
[0033] There are many types of desktop data that need to be transmitted between the cloud desktop server and the cloud desktop terminal. These desktop data can be categorized into keyboard and mouse desktop data, audio desktop data, display desktop data, and file desktop data. Keyboard and mouse desktop data primarily includes data related to keyboard and mouse operations. This type of desktop data is relatively small, and users are more sensitive to the delay of this type of desktop data. Audio desktop data primarily includes audio data. Display desktop data primarily includes various display-related data, including screenshots of the cloud desktop interface. This type of desktop data is relatively large. File desktop data primarily includes file data that needs to be transmitted. This type of desktop data is also relatively large. It is worth noting that the above classification method is illustrative only. This embodiment does not limit the classification method. In actual applications, different classification results can be generated according to other classification methods as needed. Regardless of the classification method, in this embodiment, step 101 can be performed according to the classification result, thereby allocating appropriate bandwidth upper limits to different types of desktop data.
[0034] In step 101, the network bandwidth estimated in step 100 can be used as the total allocation amount to allocate network bandwidth to each type of desktop data according to the bandwidth requirements of each type of desktop data. It should be understood that the bandwidth caps allocated to each type of desktop data are bandwidth caps, not bandwidth usage values; there is a difference between the two concepts. The bandwidth caps can be used to limit the maximum bandwidth available to desktop data. However, in actual usage, desktop data may not fully utilize the allocated maximum bandwidth. In this case, the unused bandwidth can continue to be used by other desktop data. In contrast, the unused bandwidth remains idle, resulting in waste. Therefore, allocating bandwidth caps to each type of desktop data in step 101 effectively avoids bandwidth waste and fully utilizes the network bandwidth between the cloud desktop terminal and the cloud desktop server. Especially under poor network conditions, the design details in step 101 can effectively improve bandwidth utilization.
[0035] It is also worth noting that during the current optimization cycle, the desktop data that the cloud desktop server needs to transmit to the cloud desktop terminal may not be of all types. That is, the cloud desktop server may only need to transmit certain types of desktop data to the cloud desktop terminal. To this end, in step 101, a bandwidth upper limit may be allocated only for the types of desktop data that need to be transmitted from the cloud desktop server to the cloud desktop terminal. As to the types of desktop data that need to be transmitted from the cloud desktop server to the cloud desktop terminal, in some optional solutions, this can be determined based on the feedback information sent by the aforementioned cloud desktop terminal. To this end, the feedback information may also include desktop data type information corresponding to the data packet received by the cloud desktop terminal from the cloud desktop server. Based on this, the various types of desktop data that appeared in the most recent historical period can be determined based on the feedback information as the various types of desktop data that need to be transmitted from the cloud desktop server to the cloud desktop terminal. The length of the most recent historical period can be specified as needed. Of course, this is merely exemplary. In other optional solutions, it can be determined that specific types of desktop data must be transmitted from the cloud desktop server to the cloud desktop terminal, such as the aforementioned keyboard and mouse desktop data. Other types of desktop data that need to be transmitted from the cloud desktop server to the cloud desktop terminal can also be determined based on the feedback information. This embodiment is not limited thereto.
[0036] Continuing to refer to FIG. 1 , in step 102 , the data generation rate may be adjusted for each type of desktop data based on the allocated bandwidth upper limit.
[0037] The cloud desktop server runs numerous applications, such as video players, browsers, file managers, input / output device drivers, and system applications. These applications generate various types of desktop data at the application layer. In step 102, the cloud desktop server can adjust the data generation rate of various types of desktop data at the application layer based on the bandwidth allocation results in step 101.
[0038] Among them, the bandwidth upper limit value can be converted into the data generation rate upper limit value. It should be understood that the unit of the bandwidth upper limit value is usually Mbps, that is, megabits per second, and the unit of the data generation rate upper limit value can be kbps, that is, kilobits per second. There is a conversion relationship between the two units, so it is convenient to convert. Usually, the data generation rate upper limit value = bandwidth upper limit value * 1024. Therefore, the conversion here is essentially to change the usage scenario of the numerical value, which further reflects that in step 102, the data generation rate of various types of desktop data is scheduled in the application layer, rather than in the network layer. Therefore, in step 102, the data generation rate of various types of desktop data can be adjusted in the application layer strictly according to the corresponding data generation rate upper limit value.
[0039] In one optional implementation, if there is desktop data to be adjusted that exceeds the corresponding data generation rate upper limit among various types of desktop data, the data generation rate of the desktop data to be adjusted is adjusted to its corresponding data generation rate upper limit. That is, if the actual data generation rate corresponding to a certain type of desktop data exceeds its assigned data generation rate upper limit, its data generation rate can be reduced to ensure that its data generation rate is less than or equal to its corresponding data generation rate upper limit. This ensures that the data volume corresponding to each type of desktop data generated at the application layer does not exceed its assigned data transmission capacity (i.e., the bandwidth upper limit). Accordingly, the total amount of data generated by the application layer will not exceed the data transmission capacity corresponding to the network bandwidth estimated in step 100.
[0040] If there is desktop data among the various types of desktop data that does not reach the corresponding data generation rate upper limit, the data generation rate of the desktop data to be adjusted is adjusted to its corresponding data generation rate upper limit or remains unchanged. In this case, for special types of desktop data such as keyboard and mouse desktop data, which are highly delay-sensitive to users, when bandwidth is allocated in step 101, a sufficient bandwidth upper limit is typically allocated to them throughout different optimization cycles. Therefore, the data generation rate of these special types of desktop data is sufficient and can remain unchanged even if it does not reach the corresponding data generation rate upper limit. For desktop data such as display desktop data or file desktop data, which are less delay-sensitive to users, the allocated bandwidth upper limit may fluctuate significantly during different optimization cycles. These types of desktop data also have relatively high bandwidth requirements. Therefore, for these types of desktop data, if the corresponding data generation rate upper limit is not reached, the data generation rate can be increased to the data generation rate upper limit to optimize the user experience for these types of desktop data.
[0041] In this embodiment, different methods can be used to adjust the data generation rate for different types of desktop data:
[0042] For audio and display desktop data, the bit rate during data encoding is adjusted based on the allocated bandwidth upper limit.
[0043] For keyboard and mouse desktop data and file desktop data, the data reading rate provided to the cloud desktop terminal is adjusted based on the allocated bandwidth limit.
[0044] The bit rate refers to the number of data bits used for playback or display per unit time, measured in kbps (kilobits per second). The higher the bit rate, the higher the playback or display accuracy. The data read rate refers to the number of data bits that can be read per unit time, also measured in kbps (kilobits per second). The higher the data read rate, the faster the data will be read.
[0045] It is worth noting that the above-mentioned classification method of desktop data and the adjustment method adopted for each type of desktop data are exemplary. This embodiment is not limited to this. In actual application, the specific parameter type adjusted for different types of desktop data can be set as needed to achieve adjustment of the data generation rate.
[0046] Currently, referring to Figure 3, multiple data transmission channels are configured between the application layer and the network layer of the cloud desktop server. Different data transmission channels are used to transmit different types of desktop data in the application layer to the network layer. Based on this, in actual applications, the data generation rate corresponding to each data transmission channel can be adjusted in step 102.
[0047] After the data generation rate is adjusted, referring to Figure 1 , in step 103, the various desktop data generated by the cloud desktop server at the adjusted data generation rate can be transmitted to the cloud desktop terminal. That is, at the application layer, data production can be performed at the adjusted data generation rate. Since the cloud desktop server typically transmits desktop data as it is generated, in step 103, the cloud desktop server can immediately transmit the desktop data generated by the application layer to the cloud desktop terminal via the network.
[0048] Referring to Figure 3, in an optional implementation method: independent sending queues can be allocated and maintained for different types of desktop data. Based on this, the sending queues maintained separately for each type of desktop data can be used to forward various types of desktop data generated in the cloud desktop server according to the adjusted data generation rate to the cloud desktop terminal.
[0049] Referring to Figure 3, the application layer can write the generated different types of desktop data into the corresponding sending queues according to the data generation rate adjusted in step 102. The aforementioned sending module aggregates the desktop data in each sending queue into the network link, and then sends it to the cloud desktop terminal through the network link. Since the data generation rate of each type of desktop data has been controlled according to the bandwidth upper limit value in step 101, the total amount of data aggregated into the network link will inevitably not exceed the network bandwidth estimated in step 100, which can avoid congestion in the network link. Among them, the network link here can adopt a Transmission Control Protocol TCP link or a User Datagram Protocol UDP link, etc. This embodiment does not limit the type of network link used between the cloud desktop terminal and the cloud desktop server.
[0050] Preferably, priority information can also be configured for each type of desktop data, so that there will be a priority order between various types of desktop data, and this priority order can be extended to the sending queue. Based on this, in this preferred implementation scheme: desktop data received in the sending queue with a higher priority can be forwarded first. Among them, the priority order can be set according to the user's delay sensitivity to different types of desktop data, and desktop data with higher delay sensitivity is set with a higher priority. An exemplary priority order can be: keyboard and mouse desktop data>audio desktop data>display desktop data>file desktop data. In this way, desktop data with high delay sensitivity can be sent to the cloud desktop terminal in priority, thereby optimizing the user experience corresponding to these types of desktop data.
[0051] It should be understood that the above implementation is merely exemplary, and that other implementations may be employed in this embodiment to transmit various desktop data generated by the cloud desktop server at the adjusted data generation rate to the cloud desktop terminal. For example, the generated desktop data may be directly added to the network link without requiring the aforementioned send queue for scheduling. Because the data volume is controlled at the source in this embodiment, this instantaneous transmission method does not cause network congestion. This embodiment does not limit the implementation method employed for transmitting the various desktop data generated to the cloud desktop terminal.
[0052] In summary, in this embodiment, cloud desktop optimization can be performed on a cyclical basis. Within a single optimization cycle, the available network bandwidth between the cloud desktop terminal and the cloud desktop server can be estimated, and then the network bandwidth can be reasonably allocated to different types of desktop data. Moreover, based on the bandwidth allocation results, the data generation rates corresponding to different types of desktop data can be adjusted, and the various types of desktop data generated in the cloud desktop server according to the adjusted data generation rates can be transmitted to the cloud desktop terminal. Based on this, the bandwidth allocation results can be used as a guide to schedule the data generation rates of various types of desktop data from the source, which can effectively prevent the total amount of data sent by the cloud desktop server from exceeding the network bandwidth, thereby avoiding network congestion. In this way, various types of desktop data can be smoothly transmitted to the cloud desktop terminal, providing users with a smooth user experience even when the network conditions are poor.
[0053] In the above or below embodiments, network bandwidth allocation may be performed in a variety of implementations.
[0054] In an optional implementation method: bandwidth upper limits can be allocated to each type of desktop data from the network bandwidth in order of priority between the various types of desktop data. As mentioned above, the priority order can be set according to the user's delay sensitivity to different types of desktop data, and desktop data with higher delay sensitivity can be given a higher priority. Based on this, desktop data with higher priority can be allocated to the bandwidth upper limit first, while desktop data with lower priority may not be allocated to the bandwidth upper limit because the network bandwidth has been occupied. This sequential allocation method can give priority to ensuring that desktop data with high delay sensitivity is sent smoothly to the cloud desktop terminal to ensure user experience.
[0055] An exemplary sequential allocation scheme may be:
[0056] When allocating the bandwidth upper limit value for the target desktop data, if it is determined that there is remaining bandwidth in the network bandwidth, the bandwidth upper limit value is allocated to the target desktop data from the remaining bandwidth according to the bandwidth occupation rule corresponding to the target desktop data;
[0057] Calculating the remaining bandwidth after allocating the bandwidth upper limit value for the target class of desktop data, so as to allocate the bandwidth upper limit value for the next class of desktop data;
[0058] The target desktop data is any one of various desktop data.
[0059] In this exemplary solution, when allocating a bandwidth cap for any type of desktop data, the network first determines whether there is any remaining bandwidth. If not, allocating bandwidth caps for the current and subsequent types of desktop data may be stopped. In other words, the transmission of the current and subsequent types of desktop data may be suspended during the current optimization cycle to ensure smooth transmission of higher-priority desktop data. It should be understood that this suspended desktop data is typically desktop data for which users are less sensitive to latency, and suspending its transmission will not significantly impact the user experience. If it is determined that there is still remaining bandwidth in the network, the bandwidth cap for the current type of desktop data may be allocated from the remaining bandwidth.
[0060] In this exemplary sequential allocation scheme, bandwidth usage rules are also configured for different types of desktop data. The bandwidth usage rules corresponding to different types of desktop data may not be exactly the same. For example, the bandwidth usage rule corresponding to keyboard and mouse desktop data is to occupy a specified fixed bandwidth upper limit; the bandwidth usage rule corresponding to voice desktop data is to occupy a specified fixed bandwidth upper limit; the bandwidth usage rule corresponding to display desktop data is to occupy the remaining bandwidth in the network according to a specified ratio; and the bandwidth usage rule corresponding to file desktop data is to occupy all the remaining bandwidth in the network.
[0061] In addition, in this exemplary sequential allocation scheme, the remaining bandwidth after allocating the bandwidth upper limit value for the target class desktop data needs to be calculated in order to allocate the bandwidth upper limit value for the next class desktop data. Here, the difference between the remaining bandwidth in the aforementioned network bandwidth and the bandwidth upper limit value allocated for the target class desktop data can be directly calculated as the remaining bandwidth after allocating the bandwidth upper limit value for the target class desktop data. In a preferred scheme, considering that when allocating the bandwidth upper limit value for the target class desktop data, the target class desktop data transmitted in the network link between the cloud desktop terminal and the cloud desktop server has not yet adjusted the data generation rate according to the bandwidth upper limit value, the actual bandwidth occupied by the target class desktop data being transmitted in the network link is not necessarily equal to the bandwidth upper limit value allocated to it at this time. For this reason, in this preferred scheme:
[0062] The data transmission rate of the target desktop data in the latest statistical period can be obtained;
[0063] Calculating the difference between the remaining bandwidth in the network bandwidth and the data transmission rate corresponding to the target desktop data as the remaining bandwidth after allocating the bandwidth upper limit to the target desktop data;
[0064] The statistical period is shorter than or equal to the optimization period.
[0065] Here, the data transmission rate can be obtained by counting the amount of target desktop data transmitted over the network link within a single statistical period, or by counting the amount of data sent from the send queue corresponding to the target desktop data within a single statistical period. Furthermore, if the statistical period is short enough, the real-time transmission rate corresponding to each type of desktop data can be obtained. These statistical tasks can be performed by the aforementioned sending module.
[0066] In this way, through this preferred solution, the remaining bandwidth calculated during the allocation process can be made closer to the actual network bandwidth between the cloud desktop terminal and the cloud desktop server, thereby effectively improving the rationality and accuracy of bandwidth allocation.
[0067] The following describes an implementation of bandwidth allocation using an exemplary application scenario:
[0068] 1) First, assign a bandwidth cap for keyboard and mouse desktop data:
[0069] Since the amount of keyboard and mouse desktop data is extremely small, there is no need to limit its bandwidth. A fixed value A can be assigned to it, and this fixed value can be higher than the actual bandwidth requirement of keyboard and mouse desktop data to prioritize its smooth transmission.
[0070] At this point, the remaining bandwidth left1 = network bandwidth - a, where a is the real-time data transmission rate of keyboard and mouse desktop data.
[0071] 2) Continue to allocate bandwidth caps for audio-related desktop data:
[0072] If audio desktop data needs to be sent to the cloud desktop terminal, a fixed value B can be allocated to the audio desktop data. At this point, the remaining bandwidth left2 = left1 - b; otherwise left2 = left1, where b is the real-time data transmission rate of the audio desktop data.
[0073] 3) Continue to allocate bandwidth caps for display-type desktop data:
[0074] If there is no remaining bandwidth (ie left2<=0), stop allocating bandwidth caps for the current and subsequent types of desktop data and suspend the production of these types of desktop data. Otherwise, allocate bandwidth caps C=left2*70% for display-type desktop data.
[0075] At this point, the remaining bandwidth left3 = left2 - c, where c is the real-time data transmission rate of the display-type desktop data.
[0076] 4) Continue to allocate bandwidth caps for file-related desktop data:
[0077] If there is no remaining bandwidth (ie left3 <= 0), stop allocating bandwidth caps for the current and subsequent types of desktop data and suspend the production of these types of desktop data. Otherwise, allocate bandwidth caps D = left3 for file-type desktop data.
[0078] At this point, the remaining bandwidth left4=left3-d, where d is the real-time data transmission rate of file-type desktop data.
[0079] In summary, by assigning bandwidth caps to various desktop data types based on priority, we can prioritize and ensure that more latency-sensitive desktop data is smoothly delivered to the cloud desktop terminal, while remaining bandwidth is available for less latency-sensitive desktop data. This way, bandwidth allocation allows the network's available data transmission capacity to be appropriately distributed to different types of desktop data, optimizing the user experience.
[0080] It is worth noting that the technical details involved in the above implementation are not limited to this. For example, corresponding bandwidth upper limits can be pre-configured for each type of desktop data. In this way, during the sequential allocation process, the pre-set bandwidth upper limits can be sequentially allocated from the network bandwidth to each type of desktop data. In addition, in addition to the above sequential allocation implementation, other implementations can also be used to implement bandwidth allocation in this embodiment, such as an average allocation method. This embodiment is not limited to this.
[0081] It should be noted that some of the processes described in the above embodiments and the accompanying drawings include multiple operations that appear in a specific order. However, it should be clearly understood that these operations may not be executed in the order in which they appear in this document or may be executed in parallel. The sequence numbers of the operations, such as 101, 102, etc., are merely used to distinguish between different operations and do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel.
[0082] FIG4 is a schematic diagram of the structure of a cloud desktop server provided by another exemplary embodiment of the present application. As shown in FIG4 , the computing device includes: a memory 40 and a processor 41 .
[0083] The processor 41 is coupled to the memory 40 and is configured to execute the computer program in the memory 40 to:
[0084] Estimate the network bandwidth between the cloud desktop terminal and the cloud desktop server during the current optimization cycle;
[0085] Performing an allocation operation on the network bandwidth to determine the upper limit of bandwidth allocated to each type of desktop data to be transmitted from the cloud desktop server to the cloud desktop terminal;
[0086] For each type of desktop data, the data generation rate is adjusted based on the allocated bandwidth limit;
[0087] The various desktop data generated by the cloud desktop server according to the adjusted data generation rate are transmitted to the cloud desktop terminal.
[0088] In an optional embodiment, when the processor 41 performs an allocation operation on the network bandwidth to determine the upper bandwidth limit value allocated to each type of desktop data to be transmitted from the cloud desktop server to the cloud desktop terminal, it can be specifically used to:
[0089] Bandwidth caps are allocated to each type of desktop data based on their priority.
[0090] In an optional embodiment, when allocating bandwidth upper limits to various types of desktop data from the network bandwidth in order of priority among the various types of desktop data, the processor 41 may specifically be configured to:
[0091] When allocating the bandwidth upper limit value for the target desktop data, if it is determined that there is remaining bandwidth in the network bandwidth, the bandwidth upper limit value is allocated to the target desktop data from the remaining bandwidth according to the bandwidth occupation rule corresponding to the target desktop data;
[0092] Calculating the remaining bandwidth after allocating the bandwidth upper limit value for the target class of desktop data, so as to allocate the bandwidth upper limit value for the next class of desktop data;
[0093] The target desktop data is any one of various desktop data.
[0094] In an optional embodiment, when calculating the remaining bandwidth after allocating the bandwidth upper limit to the target-type desktop data, the processor 41 may specifically be configured to:
[0095] Get the data transmission rate of the target desktop data in the latest statistical period;
[0096] Calculating the difference between the remaining bandwidth in the network bandwidth and the data transmission rate corresponding to the target desktop data as the remaining bandwidth after allocating the bandwidth upper limit to the target desktop data;
[0097] The statistical period is shorter than or equal to the optimization period.
[0098] In an optional embodiment, the bandwidth occupation rule corresponding to keyboard and mouse desktop data is to occupy a specified fixed bandwidth upper limit; the bandwidth occupation rule corresponding to audio desktop data is to occupy a specified fixed bandwidth upper limit; the bandwidth occupation rule corresponding to display desktop data is to occupy the remaining bandwidth in the network bandwidth according to a specified ratio; the bandwidth occupation rule corresponding to file desktop data is to occupy all the remaining bandwidth in the network bandwidth.
[0099] In an optional embodiment, when the processor 41 adjusts the data generation rate for each type of desktop data based on the allocated bandwidth upper limit, it may be specifically configured to:
[0100] Convert the bandwidth upper limit value into the data generation rate upper limit value;
[0101] If there is desktop data to be adjusted in various types of desktop data that has exceeded the corresponding data generation rate upper limit, the data generation rate of the desktop data to be adjusted is adjusted to its corresponding data generation rate upper limit.
[0102] In an optional embodiment, when the processor 41 adjusts the data generation rate for each type of desktop data based on the allocated bandwidth upper limit, it may be specifically configured to:
[0103] For audio and display desktop data, the bit rate during data encoding is adjusted based on the allocated bandwidth upper limit.
[0104] For keyboard and mouse desktop data and file desktop data, the data reading rate provided to the cloud desktop terminal is adjusted based on the allocated bandwidth limit.
[0105] In an optional embodiment, when the processor 41 transmits various desktop data generated by the cloud desktop server according to the adjusted data generation rate to the cloud desktop terminal, it can be specifically configured to:
[0106] By utilizing the sending queues maintained for each type of desktop data, each type of desktop data generated in the cloud desktop server according to the adjusted data generation rate is forwarded to the cloud desktop terminal.
[0107] In an optional embodiment, when the processor 41 forwards various types of desktop data to the cloud desktop terminal using the sending queues maintained for each type of desktop data, it may be specifically configured to:
[0108] Write various desktop data generated by the cloud desktop server according to the adjusted data generation rate into their corresponding sending queues respectively;
[0109] Determine the order of priority between various types of desktop data;
[0110] Desktop data received in a higher priority sending queue is forwarded first.
[0111] In an optional embodiment, when estimating the network bandwidth between the cloud desktop terminal and the cloud desktop server, the processor 41 may be specifically configured to:
[0112] Receive feedback information sent by the cloud desktop terminal, where the feedback information includes size information and arrival time information of each data packet received by the cloud desktop terminal from the cloud desktop server;
[0113] Based on the feedback information, estimate the network bandwidth between the cloud desktop terminal and the cloud desktop server.
[0114] In an optional embodiment, when the processor 41 estimates the network bandwidth between the cloud desktop terminal and the cloud desktop server based on the feedback information, it can be specifically configured to:
[0115] Divide the historical period of a specified length selected from the current moment into multiple estimation periods;
[0116] Determine the amount of data received by the cloud desktop terminal in each estimated time period based on the feedback information;
[0117] Calculate the actual bandwidth used in each estimation period based on the data volume and period length;
[0118] The maximum value is selected from the actual bandwidth used in each estimation period as the network bandwidth between the cloud desktop terminal and the cloud desktop server.
[0119] Furthermore, as shown in Figure 4, the cloud desktop server also includes other components such as a communication component 42 and a power supply component 43. Figure 4 only schematically shows some components, which does not mean that the cloud desktop server only includes the components shown in Figure 4.
[0120] It is worth noting that the technical details of the above-mentioned embodiments of the cloud desktop server can be referred to the relevant descriptions in the aforementioned method embodiments. In order to save space, they will not be repeated here, but this should not cause any loss of the protection scope of this application.
[0121] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which can implement the steps in the above method embodiment when the computer program is executed.
[0122] The memory in Figure 4 is used to store computer programs and can be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phone book data, messages, images, videos, etc. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0123] The communication component in Figure 4 above is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0124] The power supply assembly in Figure 4 provides power to various components of the device in which the power supply assembly is located. The power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which the power supply assembly is located.
[0125] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0126] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.
[0127] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0129] In a typical configuration, a cloud desktop server may include one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0130] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0131] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0132] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0133] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0134] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included in the protection scope of the present application.
Claims
1. A cloud desktop optimization method, comprising: In the current optimization cycle, estimate the network bandwidth between the cloud desktop terminal and the cloud desktop server; Performing an allocation operation on the network bandwidth to determine the upper bandwidth limit value allocated to each type of desktop data to be transmitted from the cloud desktop server to the cloud desktop terminal; For each type of desktop data, adjusting the data generation rate based on the allocated bandwidth upper limit value; Transmitting various types of desktop data generated in the cloud desktop server according to the adjusted data generation rate to the cloud desktop terminal.
2. According to the method of claim 1, the performing of the allocation operation on the network bandwidth to determine the bandwidth upper limit value allocated to each type of desktop data to be transmitted from the cloud desktop to the cloud desktop terminal comprises: According to the priority order among the various types of desktop data, bandwidth upper limits are allocated to the various types of desktop data in sequence from the network bandwidth.
3. The method according to claim 2, wherein allocating bandwidth upper limits to the various types of desktop data from the network bandwidth in order of priority among the various types of desktop data comprises: When allocating the bandwidth upper limit value for the target class desktop data, if it is determined that there is residual bandwidth in the network bandwidth, the bandwidth upper limit value is allocated to the target class desktop data from the residual bandwidth according to the bandwidth occupation rule corresponding to the target class desktop data; Calculating the remaining bandwidth after allocating the bandwidth upper limit value to the target type of desktop data, so as to allocate the bandwidth upper limit value to the next type of desktop data; The target desktop data is any one of the various desktop data.
4. The method according to claim 3, wherein the calculating the remaining bandwidth after allocating the bandwidth upper limit value to the target class desktop data comprises: Obtaining the data transmission rate counted for the target desktop data in the latest statistical period; Calculating a difference between a remaining bandwidth in the network bandwidth and the data transmission rate corresponding to the target desktop data as the remaining bandwidth after allocating a bandwidth upper limit value to the target desktop data; The statistical period is shorter than or equal to the optimization period.
5. According to the method described in claim 3, the bandwidth occupation rule corresponding to the keyboard and mouse desktop data is to occupy a specified fixed bandwidth upper limit; the bandwidth occupation rule corresponding to the audio desktop data is to occupy a specified fixed bandwidth upper limit; the bandwidth occupation rule corresponding to the display desktop data is to occupy the remaining bandwidth in the network bandwidth according to a specified ratio; the bandwidth occupation rule corresponding to the file desktop data is to occupy all the remaining bandwidth in the network bandwidth.
6. The method according to claim 1, wherein for each type of desktop data, adjusting the data generation rate based on the allocated bandwidth upper limit value comprises: Converting the bandwidth upper limit value into a data generation rate upper limit value; If there is desktop data to be adjusted that has exceeded the upper limit of the corresponding data generation rate among the various types of desktop data, The data generation rate of the desktop data to be adjusted is adjusted to its corresponding data generation rate upper limit value.
7. The method according to claim 1, wherein for each type of desktop data, adjusting the data generation rate based on the allocated bandwidth upper limit value comprises: For audio desktop data and display desktop data, the bit rate during data encoding is adjusted based on the allocated bandwidth upper limit value; For keyboard and mouse desktop data and file desktop data, the data reading rate provided to the cloud desktop terminal is adjusted based on the allocated bandwidth upper limit.
8. The method according to claim 1, transmitting various types of desktop data generated in the cloud desktop server according to the adjusted data generation rate to the cloud desktop terminal, comprising: By utilizing the sending queues respectively maintained for the various types of desktop data, the various types of desktop data generated in the cloud desktop server according to the adjusted data generation rate are forwarded to the cloud desktop terminal.
9. The method according to claim 8, using the sending queues maintained for the various types of desktop data respectively, forwarding the various types of desktop data generated in the cloud desktop server according to the adjusted data generation rate to the cloud desktop terminal, comprising: Writing various types of desktop data generated by the cloud desktop server according to the adjusted data generation rate into their corresponding sending queues respectively; Determining a priority order among the various types of desktop data; The desktop data received in the sending queue with a higher priority is forwarded first.
10. The method according to claim 1, wherein estimating the network bandwidth between the cloud desktop terminal and the cloud desktop server comprises: receiving feedback information sent by the cloud desktop terminal, wherein the feedback information includes size information and arrival time information of each data packet received by the cloud desktop terminal from the cloud desktop server; The network bandwidth between the cloud desktop terminal and the cloud desktop server is estimated according to the feedback information.
11. The method according to claim 10, wherein estimating the network bandwidth between the cloud desktop terminal and the cloud desktop server according to the feedback information comprises: Divide the historical period of a specified length selected from the current time point into multiple estimation periods; Determine the amount of data received by the cloud desktop terminal in each estimation time period according to the feedback information; Calculate the actual bandwidth used in each estimation period based on the data volume and period length; A maximum value is selected from the actually used bandwidths corresponding to each estimation period as the network bandwidth between the cloud desktop terminal and the cloud desktop server.
12. A cloud desktop server, comprising a memory and a processor; The memory is used to store one or more computer instructions; The processor is coupled to the memory and configured to execute the one or more computer instructions to implement the The cloud desktop optimization method described in any one of claims 1-11.
13. A computer-readable storage medium storing computer instructions, which, when executed by one or more processors, causes the one or more processors to execute the cloud desktop optimization method according to any one of claims 1-11.
Citation Information
Patent Citations
A cloud desktop optimization method, device and storage medium
CN116319345B
Bandwidth adaptive data transmission method for remote desktop protocol
CN106209454A
Data transmission method, device and system
CN113923206A
Cloud desktop optimization method and device and storage medium
CN116319345A
Dynamic bandwidth optimization for remote input
US20120136988A1
Cited By
Virtual desktop display method and related equipment
CN119415001A
