I am running an Amazon EC2 instance of Windows Server 2008 or Windows Server 2008 R2 and need to take advantage of TCP/IP networking enhancements by configuring the virtual network adapters for my Amazon EC2 instance.
When running Windows Server in an Amazon EC2 virtualized environment, the guest operating system is provided a virtual network interface card (NIC). This virtual NIC supports advanced networking improvements available with Windows Server 2008 and Windows Server 2008 R2. The networking improvements supported by an Amazon EC2 virtual NIC include:
TCP chimney offloading is a networking technology that allows the system to transfer network-related workload from the system's processor to a network adapter.
- Start a command prompt as an administrator.
- Run: netsh int tcp set global chimney=disabled
Note: Available options are: enabled, disabled, and automatic (automatic is available with Windows Server 2008 R2 only). - Confirm settings by running: netsh int tcp show global
RSS is designed to spread receive-side or inbound network load across multiple processors to take advantage of multi-core and/or multi processor hardware environments.
- Start a command prompt as an administrator.
- Run: netsh hint tcp set global rss=disabled
Note: Available options are: enabled, disabled - Confirm settings by running: netsh int tcp show global
NetDMA, or Network Direct Memory Access, allows network traffic to be moved into memory. When network traffic is received by the network adapter, it uses DMA to move the information directly into memory, alleviating the load on the processor.
- Start a command prompt as an administrator.
- Run: regedit
- Locate the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters - Double-click the EnableTCPA registry entry.
• If this entry does not exist, create a new DWORD Value registry entry and name the entry EnableTCPA. - To disable NetDMA, set EnableTCPA to a value of 0.
• Alternatively, set EnableTCPA to a value of 1 to enable NetDMA. - Restart the EC2 instance.
Alternative method using Windows PowerShell:
- Start Windows PowerShell as an administrator.
- Run: Get-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -name EnableTCPA
- If the value does not exist, run: New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableTCPA
- To disable NetDMA, run: Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\" -Name EnableTCPA -Value 0 -PropertyType DWord
• Alternatively, specify -Value 1 to enable NetDMA. - Exit Windows PowerShell.
- Restart the EC2 instance.
Network task offload parameters are known to cause network performance issues in a Xen virtualization environment, and network task offload should be disabled to ensure optimal performance.
- Start a command prompt as an administrator.
- Run: regedit
- Locate the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters - Double-click the DisableTaskOffload registry entry.
• If this entry does not exist, create a new DWORD Value registry entry and name the entry DisableTaskOffload. - To disable network task offload set DisableTaskOffload to a value of 1.
• Alternatively, set DisableTaskOffload to a value of 0 to enable network task offload. - Restart the EC2 instance.
Alternative method using Windows PowerShell:
- Start Windows PowerShell as an administrator.
- Run: Get-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters –name DisableTaskOffload
- If the value does not exist, run: New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DisableTaskOffload
- To disable Network Task Offload, run: New-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\" -Name DisableTaskOffload -Value 1 -PropertyType DWord
• Alternatively specify -Value 0 to enable network task offload. - Exit Windows PowerShell.
- Restart the EC2 Instance.
Auto-tuning is related to TCP window scaling in Windows Server. Some network devices do not support TCP window scaling. For example, this feature is not supported by most Cisco, Sonicwall, and Check Point firewalls as well as certain NG R55 and NetGear routers, among others. Disabling receive window auto-tuning may improve network performance.
- Start a command prompt as an administrator.
- Run: netsh int tcp set global autotuninglevel=disabled
Note: Available options are: normal, disabled (and others). - Confirm settings by running: netsh int tcp show global
RDC is an API that applications can use to determine if a set of files have changed. Although it is rare that this service affects network traffic, disabling it may help improve network performance.
- Start a command prompt as an administrator.
- Run: appwiz.cpl
- Select the option to Turn Windows Features on or off.
- Uncheck Remote Differential Compression API Support and click OK.
Consider disabling IPv6 if it is not required for your environment.
IPv6 can place unnecessary load on the Windows Server networking stack, which may degrade performance. Disabling IPv6 can improve network performance.
Note: Performing this change will affect IPv6 on all network interfaces on the system.
- Start a command prompt as an administrator.
- Run: regedit
- Locate the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters - Double-click the DisabledComponents registry entry.
• If this entry does not exist, create a new DWORD Value registry entry and name the entry DisabledComponents. - Set the value of DisabledComponents to 11 (hexadecimal) to disable IPv6 for all interfaces except for the IPv6 loopback interface.
Available options:
• 0 enables all IPv6 components (default).
• ffffffff (hexadecimal) disables all IPv6 components except for the IPv6 loopback interface and configures IPv4 over IPv6 preferences.
• 20 (hexadecimal) configures only IPv4 over IPv6 preferences.
• 10 (hexadecimal) disables IPv6 on all non-tunnel interfaces.
• 1 (decimal and hexadecimal) disables IPv6 on all tunnel interfaces.
• 11 (hexadecimal) disables IPv6 for all interfaces except for the IPv6 loopback interface. - Restart the EC2 instance.
- Start a command prompt and run netstat –es to return interface statistics and check for any connection abnormalities.
- Anti-virus software configured to perform live scans on network traffic can degrade network performance. If this functionality is not needed for your environment, consider disabling live scans of network traffic.
AWS, Amazon EC2, Windows Server, network performance, optimize
Did this page help you? Yes | No
Back to the AWS Support Knowledge Center
Need help? Visit the AWS Support Center.