Remote Desktop Protocol Performance ??MICROSOFT Remote Desktop Protocol Performance Improvements in Windows Server 2008 R2 and Windows 7 Microsoft Corporation January 2010

Download Remote Desktop Protocol Performance  ??MICROSOFT Remote Desktop Protocol Performance Improvements in Windows Server 2008 R2 and Windows 7 Microsoft Corporation January 2010

Post on 01-Apr-2018

214 views

Category:

Documents

2 download

Embed Size (px)

TRANSCRIPT

<ul><li><p>MICROSOFT </p><p> Remote Desktop Protocol </p><p>Performance Improvements in Windows Server 2008 R2 and Windows 7 </p><p>Microsoft Corporation </p><p>January 2010 </p></li><li><p>Copyright This document is provided as-is. Information and views expressed in this document, including URL and </p><p>other Internet Web site references, may change without notice. You bear the risk of using it. </p><p>This document does not provide you with any legal rights to any intellectual property in any Microsoft </p><p>product. You may copy and use this document for your internal, reference purposes. This document is </p><p>confidential and proprietary to Microsoft. It is disclosed and can be used only pursuant to a non-</p><p>disclosure agreement. </p><p> 2010 Microsoft. All rights reserved. </p><p>Microsoft, Aero, ClearType, Internet Explorer, PowerPoint, Silverlight, Windows, Windows Media, </p><p>Windows Server, and Windows Vista are trademarks of the Microsoft group of companies. All other </p><p>trademarks are property of their respective owners. </p></li><li><p>Contents Copyright ....................................................................................................................................................... 2 </p><p>Contents ........................................................................................................................................................ 3 </p><p>Overview ....................................................................................................................................................... 4 </p><p>User Scenarios ............................................................................................................................................... 5 </p><p>Test Setup ..................................................................................................................................................... 6 </p><p>Remote Desktop Connection Settings ...................................................................................................... 6 </p><p>Presentation Virtualization ........................................................................................................................... 8 </p><p>Color Depth ............................................................................................................................................... 8 </p><p>ClearType Virtualization (a.k.a. Font Smoothing) ................................................................................... 10 </p><p>Desktop Composition .............................................................................................................................. 11 </p><p>Embedded Multi-Media Performance .................................................................................................... 12 </p><p>Multi-Media Redirection ......................................................................................................................... 14 </p><p>Effects of Latency on Broadband Remoting Performance ...................................................................... 15 </p><p>Conclusion ................................................................................................................................................... 16 </p><p>Appendices .................................................................................................................................................. 17 </p><p>Appendix A. Hardware Configuration ..................................................................................................... 17 </p><p>Appendix B. Understanding Network Traffic Profiles ............................................................................. 18 </p></li><li><p>Overview With the release of the Windows Server2008 R2 and Windows7 operating systems, Remote Desktop </p><p>Protocol (RDP) is more feature rich, enabling new presentation and remote-oriented functionality such </p><p>as accelerated bitmap rendering, multi-media redirection streaming, and network topology awareness. </p><p>In short, RDP is better able to support todays ever increasingly complex and rich multi-media </p><p>environment. </p><p>As these features become integrated in the enterprise environment, it is important to analyze and </p><p>understand their impact on your current network infrastructure and the end-user experience. This paper </p><p>details different RDP features and the potential improvements to usability and quality of the end user </p><p>remoting experience as well as system deployment metrics. It also includes performance considerations </p><p>for individual features that can help guide your decisions when modifying your deployment </p><p>configuration to improve performance or tune it to the specific needs of your end users. </p><p>To test the impact of different features and compare RDP 7.0 to the previous RDP 6.1 version, we </p><p>performed a variety of tests by using automated and simulation tools to demonstrate the user scenarios </p><p>outlined in this white paper. These tests are broken down into two broad groups: a set that simulated a </p><p>user working with actual Microsoft Office applications at realistic speeds, and a set of multi-media </p><p>scenarios that simulated a rich media environment commonly expected by todays and tomorrows </p><p>users. In addition, some of the scenarios have been run at increased network latencies to demonstrate </p><p>the viability of using RDP in distributed environments, such as in Branch offices or telecommuting </p><p>scenarios where broadband capabilities exist. </p><p>Comparisons of previous versions of RDP are covered in previous white papers. However, their results </p><p>cannot be directly compared to the results presented in this white paper because the test server/client </p><p>hardware as well as networking, the scenarios, and Office applications have all been updated to reflect </p><p>current industry expectations. For example, the display sizes used have been updated to reflect higher </p><p>desktop resolutions. </p></li><li><p>User Scenarios Five different user scenarios were used to measure the performance of the Remote Desktop Connection </p><p>(RDC) client. </p><p> Executive/Complex PowerPoint Scenario. This scenario emulates a user presenting 43 high-</p><p>fidelity slides by using Microsoft Office PowerPoint 2007. The slides contain images, </p><p>transitions, and backgrounds with color gradient. The user spends a minimum of 20 seconds </p><p>viewing each slide. </p><p> Simple PowerPoint Scenario. This scenario emulates a user presenting content by using </p><p>PowerPoint 2007. The slides in this scenario are more text-intensive than those in the executive </p><p>PowerPoint scenario and have plainer backgrounds and simpler images in the form of black </p><p>diagrams. </p><p> Typing and Scrolling Scenario. This scenario emulates a user that is using Microsoft Office Word </p><p>2007. First the user opens a document and resizes its window and then highlights and changes </p><p>the font (to Arial 10 point). Then the user opens a 17-page document (the RDP 5.1 compared to </p><p>RDP 6.0 comparison white paper) and then resizes this document two times before starting to </p><p>scroll through this document at around 2 pages per minute (at a minimum of 800 milliseconds </p><p>per line of text). After completing the scrolling, a new document is opened and 1068 lines of text </p><p>consisting of 7059 words is typed into it at a maximum rate of four characters per second, which </p><p>equates to an average user typing at 35 words per minute. </p><p> Internet Explorer Scenario. This scenario emulates a user browsing the Web by using Windows </p><p>Internet Explorer 8. The user browses and scrolls through multiple Web pages that contain a </p><p>mix of text, natural images, and some schematic diagrams. The rate of scrolling is one line every </p><p>200 milliseconds, and this Web page takes around ten minutes to scroll through. The Web pages </p><p>are stored on the local disk drive of the Remote Desktop Session Host (RD Session Host) server </p><p>to avoid errors due to varying load times. </p><p> Multi-Media Sample 1. This scenario contains a short variable bit-rate Adobe Flash-encoded </p><p>video embedded in a Web page that is stored on the local hard drive of the RD Session Host </p><p>server. The video is played within Internet Explorer 8 by an embedded player plug-in. This </p><p>scenario emulates users viewing rich content Web pages containing multi-media. The resolution </p><p>of the Adobe Flash video is 1152 by 688 pixels. </p><p> Multi-Media Sample 2. This scenario contains a short fixed bit-rate Silverlight-encoded video </p><p>embedded in a Web page that is stored on the local hard drive of the RD Session Host server. </p><p>The video is played within Internet Explorer 8 by an embedded player plug-in. This scenario </p><p>emulates users viewing rich content Web pages containing multi-media. The resolution of the </p><p>Silverlight video is 1024 by 576 pixels, its total data rate is 5000 kilobits per second (Kbps), and it </p><p>renders at 29 frames per second (fps) with 64 Kbps mono auto. </p><p> Multi-Media Sample 3. This scenario contains a thirty-second Windows Media (WMV)-</p><p>encoded video at 29 frames per second at a resolution of 1280 by 720 pixels with a 192 Kbps </p><p>audio track. This scenario is used to test multi-media redirection. </p></li><li><p>Test Setup The tests were conducted in a private lab to avoid external network interference. The results in this </p><p>white paper are the average of three to five test runs depending on the standard deviation between the </p><p>individual runs. Details of the server and client systems used can be found in the Appendices together </p><p>with additional details of how certain measurements were taken, and how they should be interpreted. </p><p>Remote Desktop Connection Settings Tests were run by using the following range of Remote Desktop Connection client settings. As the </p><p>RDP 6.1 client and RDP 7.0 client vary in their interfaces slightly, both are fully detailed. All test results </p><p>indicate the setting combinations used for testing when a one-to-one direct mapping did not exist. </p><p> Color depth: High Color (16-bit) and Highest Quality (32-bit) </p><p> Connection speed setting on the Experience tab: </p><p>a. Windows Vista with Service Pack 1 client </p><p> Default: Modem - 56 kilobits per second (Kbps) </p><p> LAN: 10 megabits per second (Mbps) or higher </p><p>b. Windows 7 client: </p><p> Default: Low-speed broadband - 256 Kbps to 2 Mbps </p><p> LAN: 10 Mbps or higher </p><p> WAN: 10 Mbps or higher with high latency </p><p> Default bulk compression and persistent bitmap caching settings </p><p> Font smoothing (ClearType): On or Off </p><p> Desktop composition (AeroGlass): On or Off </p></li><li><p>Chart 1 shows all the different client configuration options used in this report and their default settings. </p><p>RDP </p><p>version </p><p>Client </p><p>connection </p><p>setting </p><p>Desktop </p><p>background </p><p>Font </p><p>smoothing </p><p>Desktop </p><p>composition </p><p>Show </p><p>contents </p><p>while </p><p>dragging </p><p>Menu and </p><p>window </p><p>animation </p><p>Visual </p><p>styles/themes </p><p>Persistent </p><p>bitmap </p><p>caching </p><p>6.1 Default </p><p>Modem </p><p>56 Kbps </p><p>6.1 LAN </p><p> 7.0 Default </p><p>Low-speed </p><p>broadband </p><p>7.0 LAN </p><p> 7.0 WAN </p><p> Chart 1: Client configuration options used in this report and their default settings </p></li><li><p>Presentation Virtualization </p><p>Color Depth In previous versions of RDP, 16-bit color depth always reduced the networking resource requirements of </p><p>deployment compared to the 32-bit color depth introduced with Windows Vista in RDP 6.1. In Windows </p><p>Server 2008 R2, RDP 7.0 utilizes an improved bitmap compressor so that, for the first time, the higher </p><p>fidelity of 32-bit color is obtainable at lower bit rates than 16-bit color for many common scenarios. </p><p>Note: The 8-bit color depth is no longer supported in Windows Server 2008 R2 for Remote </p><p>Desktop Services. True Color (24-bit) support was retired in Terminal Services in Windows </p><p>Server 2008. The only valid options for Windows Server 2008 R2 are High Color (16-bit) </p><p>and Highest Quality (32-bit). </p><p>Table 1 and Chart 2 compare the total bandwidth (in bytes) consumed by a user scenario that uses </p><p>different color-depth settings. The tests were conducted by using the default connection settings (56-</p><p>Kbps modem connection setting in RDP 6.1 and the low-speed broadband setting in Windows 7) with </p><p>the default bulk compression settings. </p><p>Scenario RDP 6.1 16 bpp </p><p>RDP 6.1 32 bpp </p><p>RDP 7.0 16 bpp </p><p>RDP 7.0 32 bpp </p><p>Complex PowerPoint 87507102 87698437 73456182 65661943 </p><p>Simple PowerPoint 42680431 42600992 36172121 32873438 </p><p>Word Scroll and Type 2245601 9579862 2846335 6782496 </p><p>Internet Explorer 8 Scrolling 4017795 15436909 4356808 10991610 Table 1: Color depth comparison for different knowledge worker scenarios </p><p>Scenario RDP 6.1 to RDP 7.0 </p><p>16 bpp RDP 6.1 to RDP 7.0 </p><p>32 bpp </p><p>Complex PowerPoint -16% -25% </p><p>Simple PowerPoint -15% -23% </p><p>Word Scroll and Type 27% -29% </p><p>Internet Explorer 8 Scrolling 8% -29% Table 2: Network traffic of RDP 7.0 compared to RDP 6.1 by scenario and color bit depth. Less is better. </p></li><li><p> Chart 2: Color depth comparison for different scenarios </p><p> Chart 3: Network traffic of RDP 7.0 compared to RDP 6.1 by scenario and color bit depth. Less is better. </p></li><li><p>Tables 1 &amp; 2 and Charts 2 &amp; 3 show that RDP 7.0 is more efficient at remoting bitmap-rich content by </p><p>reducing between 15% to 29% the total network traffic generated for 32-bit color depth displays. 16-bit </p><p>color depth is less effective with reduction in bandwidth for PowerPoint, Web browsing, and Word </p><p>scrolling and typing. </p><p>ClearType Virtualization (a.k.a. Font Smoothing) ClearType display technology is a Microsoft font smoothing technique that improves the readability of </p><p>text on LCD screens. With the proliferation of LCD screens and the release of WindowsVista, </p><p>Windows 7, and Office 2007, ClearType has become very important. Most of the fonts available in </p><p>WindowsVista and Office 2007 are tuned for ClearType and look unattractive when it is turned off. Due </p><p>to these reasons, Remote Desktop Services decided to give the user the option to turn on ClearType. </p><p>You can get ClearType in the Remote Desktop Connection (RDC) 7.0 client by going to the Experience </p><p>tab and selecting Font smoothing. However, the high fidelity of ClearType comes at a cost. </p><p>Normally (with Font smoothing disabled) fonts are transmitted as glyphs. Remote Desktop Protocol </p><p>transmits glyphs efficiently and caches them to reduce bandwidth consumption. With ClearType </p><p>enabled, fonts are transmitted as bitmaps and not as glyphs; transmitting these bitmaps to the client </p><p>results in increased bandwidth consumption. From our initial internal testing, we found that enabling </p><p>ClearType for text scrolling and typing scenarios resulted in an increase in bandwidth consumption that </p><p>was 79% to 83% greater than when the scenario was run with ClearType disabled (in contrast to RDP 6.1 </p><p>where enabling ClearType cost between 1x and 2x of extra bandwidth). In RDP 7.0, ClearType can be </p><p>enabled in many instances without significant impact in bandwidth compared to RDP 6.1. </p><p>Table 3 and Chart 4 show the total bandwidth consumption (in Bytes) for user scenarios running at 16-</p><p>and 32-bit color depths with the LAN connection setting + ClearType or Font smoothing explicitly turned </p><p>off or on. </p><p>RDP version Font smoothing enabled </p><p>Font smoothing disabled </p><p>Bandwidth increase using font smoothing </p><p>RDP 6.1 - 16bpp 5039496 2441593 106% </p><p>RDP 6.1 - 32bpp 30295938 9579862 216% </p><p>RDP 7.0 - 16bpp 5465492 3059905 79% </p><p>R...</p></li></ul>