System and method embodiments are provided for adaptive bandwidth management for transporting rendered graphics in a virtual desktop infrastructure. The embodiments include a video detection algorithm that enables a driver for a graphics processor at the server's end to identify displayed video data at the user'send. The driver identifies video traffic that is sent to the user device by tracking repeated bitmap operations at the same display area or block of an application displayed window at the user device. When the number of bitmap operations reaches a pre-determined threshold, then the corresponding area is considered a video display area. When detecting that a bandwidth threshold for transporting graphics data from the server to the device is reached, the data corresponding to the detected video area is compressed using a higher compression rate, thus increasing the loss rate of transferred video data to improve playback experience for the user.
|
1. A method for adaptive bandwidth management to handle graphics for a virtual desktop infrastructure (VDI), the method comprising:
determining, at a server, that graphics data transmitted to a remote user device has reached a threshold bandwidth;
upon determining that the graphics data has reached the threshold bandwidth, detecting video data among the graphics data by using a table to track a number of bitmap blits at window display areas of an application, wherein a bitmap blit is a computer graphics operation in which multiple bitmaps are combined into one bitmap using a raster operator, and wherein the graphics data includes at least some non-video graphics data, wherein detecting the video data by using the table to track the number of bitmap blits comprises recording, in the table, a number of bitmap blits detected in a given window display area during a period, and determining that video data is present in the window display area during the period when the number of bitmap blits recorded in the table exceeds a threshold; and
upon detecting the video data among the graphics data, compressing the video data at a higher compression rate than the non-video graphics data before transmitting the video data with the non-video graphics data to the remote user device.
8. A method for adaptive bandwidth management to handle graphics for a virtual desktop infrastructure (VDI), the method comprising:
tracking, at a driver for graphics rendering at a virtual machine (VM), a number of bitmap blits for window display areas of an application that displays graphics data on a remote user device, wherein a bitmap blit is a computer graphics operation in which multiple bitmaps are combined into one bitmap using a raster operator, and wherein the graphics data includes at least some non-video graphics data, wherein tracking the number of bitmap blits comprises recording, in a table, a number of bitmap blits detected in a given window display area during a period, and determining that video data is present in the window display area during the period when the number of bitmap blits recorded in the table has reached a pre-determine number;
upon detecting that the number of bitmap blits of a window display area has reached the pre-determined number, identifying the graphics data for the window display area as video data;
tracking a bandwidth of the graphics data;
upon detecting that the bandwidth has reached a threshold, increasing a compressing rate of the video data to a pre-determined rate; and
sending the graphics data including the video data compressed at the pre-determined rate to the remote user device.
15. A network component configured for adaptive bandwidth management for graphics rendering, the network component comprising:
a virtual machine (VM);
a processor; and
a computer readable storage medium storing programming for execution by the processor, the programming including instructions to:
determine that graphics data transmitted from the VM to a remote user device has reached a threshold bandwidth;
upon determining that the graphics data has reached the threshold bandwidth, detect video data among the graphics data by using a table to track a number of bitmap blits for window display areas of an application, wherein a bitmap blit is a computer graphics operation in which multiple bitmaps are combined into one bitmap using a raster operator, and wherein the graphics data includes at least some non-video graphics data, wherein the instructions to detect the video data by using the table to track the number of bitmap blits includes instructions to record, in the table, a number of bitmap blits detected in a given window display area during a period, and to determine that video data is present in the window display area during the period when the number of bitmap blits recorded in the table exceeds a threshold; and
upon detecting the video data among the graphics data, compress the video data at a higher compression rate than the non-video graphics data before transmitting the video data with the non-video graphics data to the remote user device.
2. The method of
determining that the transmitted the graphics data has reached a tolerated bandwidth level; and
upon determining that the transmitted graphics data has reached the tolerated bandwidth level, cease compressing the video data at the higher compression rate such that the video data and the non-video graphics data is compressed at the same compression rate.
3. The method of
determining that the transmitted video data has reached a tolerated bandwidth level; and
upon determining that the transmitted video data has reached the tolerated bandwidth level, cease compressing the video data at the higher compression rate such that the video data and the non-video graphics data is compressed at the same compression rate.
4. The method of
5. The method of
determining that a window display area is a video display area when the number of bitmap blits for the window display area has reached a pre-determined number.
6. The method of
7. The method of
9. The method of
10. The method of
11. The method of
12. The method of
13. The method of
identifying the graphics data for the corresponding window display area as non-video data; and
resuming compression of the graphics data at a lower or standard compression rate for the corresponding window display area.
14. The method of
16. The network component of
a graphics processing unit (GPU) configured for rendering the graphics data including the video data; and
a driver configured to serve as an interface between the GPU and the application, and wherein the application displays the graphics data including the video data in a window on the remote user device.
17. The network component of
determine whether the transmitted graphics data or video data has reached a tolerated bandwidth level; and
upon determining that the transmitted graphics data or video data has reached the tolerated bandwidth level, stop the higher compression rate of the video data.
18. The network component of
determine that a window display area is a video display area when the number of bitmap blits for the same window display area has reached a pre-determined number.
|
The present invention relates to network communications and optimization, and, in particular embodiments, to a system and method for adaptive bandwidth management.
A virtual desktop infrastructure (VDI) is an infrastructure that allows a user or client device to access, via a network, a virtual machine at a remote server to process and display graphics (e.g., video graphics). The graphics are processed at the VM or remote server and then displayed remotely at the user device. For example, the user device communicates with the VM at the remote server using a Transmission Control Protocol (TCP) to display video via a web browser application. When there is no bandwidth restriction, the display quality can match or be similar to that of locally processed and displayed graphics at the device. However, traffic is often transferred in bursts and network bandwidth is limited. Further, when videos for a substantial number of users are server rendered, the overall traffic bandwidth in the network increases. When a threshold bandwidth for traffic is reached, the displayed video becomes unacceptably slow to the user. Therefore, there is a need for an improved graphics/video transfer scheme in a VDI that is adaptive to bandwidth conditions between the user and the server, e.g., to avoid unacceptable slow video display speed that affects user experience.
In accordance with an embodiment, in a server, a method for adaptive bandwidth management to handle graphics for a virtual desktop infrastructure (VDI) includes determining, at the server, whether graphics data transmitted to a remote user device has reached a threshold bandwidth, upon determining that the graphics data has reached the threshold bandwidth, detecting whether there is video data among the graphics data and upon detecting video data among the graphics data, compressing video data at a higher compression rate than the graphics data before transmitting the video data with the graphics data to the remote user device.
In accordance with another embodiment, in a virtual machine (VM) at a server, a method for adaptive bandwidth management to handle graphics for a VDI includes tracking, at a driver for graphics rendering at the VM, a number of bitmap operations for each window display area of an application that displays graphics data on a remote user device, and upon detecting that the number of bitmap operations of a window display area has reached a pre-determined maximum number of hits, identifying the graphics data for the window display area as video data. The method further includes tracking a bandwidth of the graphics data, upon detecting that the bandwidth has reached a threshold, increasing a compressing rate of the video data to a pre-determined rate, and sending the graphics data including the video data compressed at the pre-determined rate to the remote user device.
In accordance with yet another embodiment, a network component configured for adaptive bandwidth management for graphics rendering includes a VM, a processor, and a computer readable storage medium storing programming for execution by the processor. The programming includes instructions to determine, at a server, whether graphics data transmitted from the VM to a remote user device has reached a threshold bandwidth, upon determining that the graphics data has reached the threshold bandwidth, detect whether there is video data among the graphics data, and upon detecting video data among the graphics data, compress video data at a higher compression rate than the graphics data before transmitting the video data with the graphics data to the remote user device.
For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawing, in which:
The making and using of the presently preferred embodiments are discussed in detail below. It should be appreciated, however, that the present invention provides many applicable inventive concepts that can be embodied in a wide variety of specific contexts. The specific embodiments discussed are merely illustrative of specific ways to make and use the invention, and do not limit the scope of the invention.
System and method embodiments are provided for adaptive bandwidth management for transporting rendered graphics in a VDI. The embodiments include a video detection algorithm or scheme that enables a driver for a graphics processor at the server's end to identify displayed video data at the user's end. Typically, the driver can detect video data when sent to a video player (on the device) but is unable to distinguish video data from other graphics data that is sent to a browser application on the device. The detection algorithm enables the driver to identify video traffic that is sent to the user device by tracking repeated bitmap blits at the same display area or block (e.g., of a browser window) at the user device. A bitmap blit is used herein to refer to a computer graphics operation in which several bitmaps are combined into one using a raster operator. The amount of bitmap blits per display area or block can be monitored during a session, for example via hashing. When the number of bitmap blits (e.g., at a hash table entry) reaches a threshold, then the corresponding area is considered a video display area. The tracked number of bitmap blits per area (e.g., at the hash table entry) can be deleted after a pre-determined period of inactivity to limit the tracking to more recent display events.
Further, when shortage in bandwidth is determined, e.g., by detecting that a bandwidth threshold is reached, data corresponding to the detected video area and sent from the server to the device is compressed. The data can be compressed using a higher compression rate, e.g., beyond a standard or initial file compression format of the data, to reduce the amount of transferred video data (increase loss rate from compression). The higher compression rate has a higher data loss rate than the lower or standard compression rate that may be used to compress the data. For example, the data (including video data) may be initially compressed using JPEG format at a relatively lower compression rate to maintain image quality relatively high. To increase the compression rate of video data, the JPEG format compression rate is increased at the expense of image quality. Reducing the amount of video data reduces pressure on available bandwidth and allows faster video display on the device at the expense of video quality (due to higher compression rate). This improves user experience, since users can tolerate video quality to maintain display at an acceptable rate or speed. This remote video detection and bandwidth management scheme can also be used for bandwidth management of any similar graphics based traffic, where user experience (e.g., display speed) may be affected by bandwidth.
Specifically, the driver 122 is configured, upon detecting insufficient or limited link bandwidth to the user device 110 or the application 112, to implement or trigger a relatively high compression rate of the video data sent to the user device 110. The data can be compressed at the driver 122 or a compression block (not shown) at the VM 120 or the server. Insufficient bandwidth can be determined when the amount of sent graphics data exceeds or is close to a pre-determined maximum threshold bandwidth. The higher compression rate is applied to video data that is detected by the VM 120, e.g., at the driver 122 or other detection block. The higher compression rate reduces the bandwidth of sent data, e.g., at the expense of displayed video quality at the application 112 (e.g., web browser). Other sent graphics data may be compressed at a lower or standard compression rate. Additionally, when the VM 120 detects a decrease in bandwidth of sent data, e.g., below a pre-determined threshold, the VM 120 stops the higher compression rate of the video data. The video data can still be compressed, e.g., regardless of bandwidth level, using relatively low or standard rate compression formats.
To detect whether the graphics data that is displayed by the application 112 belongs to video graphics or other graphics (e.g., pictures or images), the VM 120 or driver 122 is configured to keep track of area hits with blits from the application, e.g., track the number of blits per area blocks in a browser window. For instance, a hash table can be used to track the area hits with blits. When a blit is detected, a hash entry is updated to reflect the area hit with the detected blit. When the hits at the hash table entry reaches a pre-determined threshold number of times, the t area is considered a video display area in the application or browser window. Since the graphics in a video typically change at a faster rate than other graphics (e.g., still images), a suitable threshold number of times can be determined to distinguish the video graphics. Further, the number of hits in the table entries (corresponding to window areas or blocks) is reinitiated (e.g., reset to zero) after a certain time (e.g., a pre-determined wait time) when there is no change in the number of hits. As such, window areas that stop displaying video after some time can be accounted for.
The CPU 310 may comprise any type of electronic data processor. The memory 320 may comprise any type of system memory such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), read-only memory (ROM), a combination thereof, or the like. In an embodiment, the memory 320 may include ROM for use at boot-up, and DRAM for program and data storage for use while executing programs. In embodiments, the memory 320 is non-transitory. The mass storage device 330 may comprise any type of storage device configured to store data, programs, and other information and to make the data, programs, and other information accessible via the bus. The mass storage device 330 may comprise, for example, one or more of a solid state drive, hard disk drive, a magnetic disk drive, an optical disk drive, or the like.
The processing unit 301 also includes one or more network interfaces 350, which may comprise wired links, such as an Ethernet cable or the like, and/or wireless links to access nodes or one or more networks 380. The network interface 350 allows the processing unit 301 to communicate with remote units via the networks 380. For example, the network interface 350 may provide wireless communication via one or more transmitters/transmit antennas and one or more receivers/receive antennas. In an embodiment, the processing unit 301 is coupled to a local-area network or a wide-area network for data processing and communications with remote devices, such as other processing units, the Internet, remote storage facilities, or the like.
While this invention has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.
Patent | Priority | Assignee | Title |
10868850, | Feb 29 2016 | UNIVERSITY-INDUSTRY COOPERATION GROUP OF KYUNG HEE UNIVERSITY | Apparatus and method for providing contents using web-based virtual desktop protocol |
Patent | Priority | Assignee | Title |
5784572, | Dec 29 1995 | AVAGO TECHNOLOGIES GENERAL IP SINGAPORE PTE LTD | Method and apparatus for compressing video and voice signals according to different standards |
8392596, | May 26 2009 | Red Hat Israel, Ltd.; Red Hat, Inc | Methods for detecting and handling video and video-like content in remote display system |
8724696, | Sep 23 2010 | VMware LLC | System and method for transmitting video and user interface elements |
20050052427, | |||
20130195421, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Apr 16 2013 | XIA, GUANGSONG | FUTUREWEI TECHNOLOGIES, INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 030922 | /0147 | |
Apr 18 2013 | Futurewei Technologies, Inc. | (assignment on the face of the patent) | / | |||
Feb 28 2022 | FUTUREWEI TECHNOLOGIES, INC | HUAWEI CLOUD COMPUTING TECHNOLOGIES CO , LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 059682 | /0738 |
Date | Maintenance Fee Events |
Feb 20 2020 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Apr 29 2024 | REM: Maintenance Fee Reminder Mailed. |
Oct 14 2024 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Sep 06 2019 | 4 years fee payment window open |
Mar 06 2020 | 6 months grace period start (w surcharge) |
Sep 06 2020 | patent expiry (for year 4) |
Sep 06 2022 | 2 years to revive unintentionally abandoned end. (for year 4) |
Sep 06 2023 | 8 years fee payment window open |
Mar 06 2024 | 6 months grace period start (w surcharge) |
Sep 06 2024 | patent expiry (for year 8) |
Sep 06 2026 | 2 years to revive unintentionally abandoned end. (for year 8) |
Sep 06 2027 | 12 years fee payment window open |
Mar 06 2028 | 6 months grace period start (w surcharge) |
Sep 06 2028 | patent expiry (for year 12) |
Sep 06 2030 | 2 years to revive unintentionally abandoned end. (for year 12) |