How to check if Windows is using TCP auto-tuning and optimize its performance

Last update: 10/03/2026

  • TCP receive window auto-tuning dynamically adjusts the buffer size to improve performance on high and low latency networks.
  • In Windows you can check the auto-tuning status with netsh or PowerShell and switch between levels such as normal or disabled depending on the network and hardware.
  • Routers, firewalls, and older systems can cause slowness or outages when auto-tuning is active, forcing you to disable it in certain scenarios.
  • In addition to auto-tuning, features such as RSS, VMQ, and open port analysis influence the speed, stability, and security of the connection.

How to check if Windows is using TCP auto-tuning

¿How to check if Windows is using TCP auto-tuning? In recent years many users have been surprised to discover that Your internet connection isn't as fast as it should be.Despite having a good bandwidth plan, network cables in good condition, and modern routers, when you've checked all the "typical" things (ISP, WiFi, cabling, etc.) and the speed still doesn't add up, It's time to look inside Windows.

Since Windows Vista, the system has incorporated a feature called TCP receive window auto-tuning (Windows Auto-Tuning) automatically adjusts certain network parameters to try to get the best possible connection. The problem is that, depending on the operating system combination, generic driversrouters and firewalls, It can greatly improve performance or, conversely, cause slowness and interruptions.That's why it's essential to know how to check if it's activated, what level it's using, and how to change it safely.

What is TCP auto-tuning and why should you care?

TCP operation and automatic adjustment in Windows

The Windows TCP/IP stack uses a TCP receive window to store incoming data before the application processes it. The size of that window is key: If it's too small, you're wasting bandwidth.If it is excessive, you can overload intermediate equipment or cause strange behavior in certain networks.

The characteristic of reception window auto-tuning allows Windows Continuously monitor network path conditions: available bandwidthLatency (delay), the time it takes the application to read the data, etc. With this information, the system dynamically adjusts the window size using the mechanism of TCP window scaling (RFC 1323) to make the most of the connection.

In practice, auto-tuning calculates the so-called bandwidth-delay product (BDP)From there, it decides what window size is optimal for a specific transfer, and varies it on the fly to fill the data "pipe" without leaving any unused bandwidth gapsIn high-speed, high-latency networks (e.g., links between geographically distant sites), this makes a huge difference in performance.

Although the idea is very good, here's the nuance: Not all routers, firewalls, or remote systems correctly implement RFC 1323Some older or misconfigured devices react poorly to large window sizes or certain TCP options, causing slow transfers, connection drops, or application crashes.

For this reason, Microsoft decided that, in versions like Windows VistaApplications that use the WinHTTP interface (Windows Update, Remote Desktop, certain File Explorer functions, SharePoint via WebDAV, etc.) Don't take advantage of the standard auto-tuning, unless it is explicitly activated through the Registry.

How to tell if Windows is using TCP auto-tuning

Before touching anything, it's advisable to check. What auto-tuning configuration is your system using?Windows offers two main paths: the classic tool netsh in the Command Prompt and PowerShell cmdlets.

Check auto-tuning with netsh

The most direct method on modern client and server systems is to use netsh from a command prompt with administrator privileges. This utility allows you to view the global configuration of the TCP stack and, among other things, See what level of auto-tuning is active.

To do this, open the Command Prompt (cmd) as administrator and execute:

netsh interface tcp show global

Within the command output, you should look at the line that refers to the "Automatic Reception Window Adjustment Level" (or similar text, varies slightly depending on the Windows version). When auto-tuning is working normally, the value usually appears as "normal"If "disabled" or an equivalent value appears, you'll know that the system is not automatically adjusting the receive window.

In scenarios where A/B testing has been done, it has been observed that with autotuninglevel=normal A 1 Gbps connection that previously only reached 50-60 Mbps can now reach around 900-950 Mbps download and close to the maximum uploadprovided that the rest of the infrastructure is adequate.

Check auto-tuning with PowerShell

In more recent versions of Windows, especially in server environments such as Windows Server 2016/2019 and later, it is very practical to use PowerShell to view and adjust the auto-tuning associated with different TCP profiles.

Open PowerShell as administrator and run:

Get-NetTCPSetting | Format-List SettingName,Autotuninglevel*

This command displays a list of TCP configurations (for example, Internet, Datacenter, Compat, etc.) along with its ownership AutotuninglevelLocalIf that value is listed as NormalAuto-tuning is enabled for that profile; if it appears as Disabled or an equivalent state, automatic adjustment does not apply to those connections.

Exclusive content - Click Here  How to prevent Discord from capturing desktop and YouTube audio

If you want to force all configurations to use normal auto-tuning, you can run something like:

Get-NetTCPSetting | Set-NetTCPSetting -AutoTuningLevelLocal Normal

This way you ensure that all TCP templates (those that use clients, servers and special applications) benefit from dynamic adjustment, provided that the network and intermediate devices support it.

Enable or disable global auto-tuning in Windows

If, when checking the settings, you see that the auto-tuning is not as you want it, you can modify the global level with a single command. This is very useful for testing and comparing performance with auto-tuning enabled and disabled.

To completely disable it in the TCP stack, open an administrator console (cmd) and type:

netsh int tcp set global autotuninglevel=disabled

After executing the command, it is recommended restart the computer to ensure that all new connections use the new configuration. From that point on, the system will stop adapting the receive window size and will use more conservative values, which may avoid problems with older routers or firewalls, at the cost of sacrificing performance on fast or high-latency links.

If you want to revert to standard Windows behavior, which is usually the best option in most modern scenarios, use:

netsh int tcp set global autotuninglevel=normal

Again, after the change it is advisable to restart and repeat the speed tests (for example with speedtest.net or other similar tools) to check if the variation has improved, worsened, or has practically not affected the available bandwidth.

In many real-world cases it has been observed that with autotuninglevel=disabled Downloads fall far short of what was contracted, while with autotuninglevel=normal It gets very close to the theoretical maximum of the line, demonstrating that the reception window was clearly undersized when the automatic adjustment was turned off.

Specific auto-tuning for WinHTTP and WinINet via Registry

In addition to the global TCP stack configuration, Windows allows you to control whether the Is auto-tuning applied to HTTP traffic managed by WinHTTP and WinINet?which are the layers used by many Microsoft services and applications.

Enable auto-tuning for WinHTTP in Windows Vista and derivatives

In Windows Vista, and in some legacy scenarios, HTTP traffic passing through WinHTTP (Windows Update, automatic updates, Remote Desktop, network file explorer using WebDAV, SharePoint, etc.) did not take advantage of the factory auto-tuning. To enable it, you must modify the Registry:

  1. Click on Start, writes regedit in the search box and press Enter.
  2. Navigate to the key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp.
  3. Right-click on WinHttpchoose New and then DWORD value (32 bits).
  4. Call him TcpAutotuning and press Enter.
  5. Right-click on TcpAutotuningselect Modify and put 1 en Value information.
  6. Close the Registry Editor and Restart the computer.

When the entrance TcpAutotuning is present and established in 1Auto-tuning is applied to HTTP traffic that uses WinHTTP. If the value does not exist or is not 1, the function remains disabled for that type of traffic.

Enable auto-tuning for WinINet on Windows 7 and later systems

In Windows 7 and later, the component WinINet (used by applications such as Internet Explorer, and others based on its libraries) can also be controlled through the Registry to take advantage of auto-tuning or not.

The steps are very similar:

  1. Open regedit as administrator.
  2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings.
  3. Create a new DWORD value called TcpAutotuning and assign it the value 1.
  4. Repeat the same process for the 32-bit key on 64-bit systems: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings.
  5. Close the editor and restart your computer.

In this case, WinINet will only be using auto-tuning when both entries TcpAutotuning have courage 1If they do not exist or have a different value, the component It will behave as if automatic adjustment were not allowed. for your traffic.

When can TCP auto-tuning cause problems?

Although auto-tuning is a clear improvement on paper, this isn't always the case in real-world environments. There are networks where enabling it leads to problems. very slow data transfers or even intermittent loss of connectivityThis usually happens when there are:

  • Old routers that do not properly implement RFC 1323.
  • Old Firewalls who do not understand the advanced TCP options or partially block them.
  • Obsolete remote operating systems with limited mains batteries.

In these scenarios, when automatic adjustment is enabled, the local device begins to increase the size of the reception window to make better use of the connection, but the intermediary device doesn't adequately support that operation. As a result, symptoms such as the following may appear: web pages that load slowly, downloads that never finish, applications that "freeze" or frequent session interruptions (for example, in Remote Desktop).

Exclusive content - Click Here  How can I check my Infonavit points?

If the problematic devices are outside your organization (for example, routers from your internet provider or third-party infrastructure), you may not have the time to update or reconfigure them. In that case, the practical solution is to disable auto-tuning in your teams to regain stability, accepting a possible performance sacrifice.

When the cause is within your own network (corporate routers or firewalls, appliances, load balancers, etc.), the recommended course of action is consult with the manufacturer and check if there is updated firmware or specific configurations that allow working correctly with scaled TCP windows.

Other related TCP performance factors (RSS, VMQ, and loopback)

Auto-tuning isn't the only parameter that can make a fast connection lightning-fast or, conversely, feel much slower. Windows incorporates other features such as RSS (Receive Side Scaling), VMQ (Virtual Machine Queue) and optimizations of TCP loopback that significantly influence performance.

Performance in high-latency, high-bandwidth networks

When you have two geographically separated servers, connected by a high-capacity but high-latency link, it's very common to see that the performance measured with tools like ctsTraffic It falls well below the expected baseline. In many cases, the reason is as simple as this: The TCP window scaling option is not enabled. because auto-tuning remains disabled.

In these types of links, without auto-tuning, the receive window size is very small compared to the available bandwidth, so only a fraction of the link's actual capacity is utilized. Enabling automatic tuning with:

netsh int tcp set global autotuninglevel=normal

or via PowerShell with:

Get-NetTCPSetting | Set-NetTCPSetting -AutoTuningLevelLocal Normal

the servers start to fill the data "tunnel" much more effectively, which is reflected in a very noticeable increase in the useful flow rate in the tests.

Performance in low-latency, high-bandwidth networks: RSS and VMQ

Conversely, when the network has Low latency but high bandwidth (For example, within a data center with 10/25/40 Gbps switches), you might find that the processor barely moves from CPU 0 while the other cores are practically idle. This causes the overall TCP performance to fall far short of what it should be.

This behavior is usually due to the characteristic Receive Side Scaling (RSS) wave Virtual Machine Queue (VMQ) They are not enabled or configured correctly. On physical servers acting as hypervisors, it is advisable to use VMQ; on machines that do not virtualize, the ideal is to activate RSS both in the operating system and in the network cards.

To enable RSS from an administrator console you can use:

netsh int tcp set global rss=enabled

And in PowerShell, by adjusting the specific network adapters:

Set-NetAdapterRss -Name <nombre_interfaz> -Enabled $True

It is also important to review the advanced network card propertiesFrom PowerShell:

Get-NetAdapterAdvancedProperty | Where-Object -property RegistryKeyword -Like *rss* | Format-Table -AutoSize

or through the graphical interface (ncpa.cpl, connection properties, button Set up, eyelash Advancedand look for the "Lateral Reception Scaling" option). If necessary, RSS can be enabled with:

Set-NetAdapterAdvancedProperty -Name <nombre_interfaz> -RegistryKeyword *RSS -RegistryValue 1

TCP loopback improvements in Windows Server 2019

Starting with Windows Server 2019, Microsoft revised the TCP/IP loopback processing model to reduce bottlenecks in communications where traffic It doesn't really come from the team (client and server on the same machine). When one application communicates with another using TCP loopback (127.0.0.1 or ::1), performance can be critical.

Several configurable parameters were added via netsh for IPv4 and IPv6, such as:

netsh int ipv4|ipv6 set global loopbackexecutionmode=adaptive|inline|worker
netsh int ipv4|ipv6 set global loopbackworkercount=<valor>
netsh int ipv4|ipv6 set global loopbacklargemtu=enable|disable

The available modes allow you to choose between prioritizing the low latency (Inline mode, where processing is done in the application threads), maximize the gross yield (Worker mode, with dedicated queues and threads) or find a middle ground (Adaptive mode, which starts online and then delegates to worker threads).

Parameters such as loopbackworkercount They allow you to adjust the number of worker threads used to process loopback traffic, and loopbacklargemtu Enables or disables the use of large MTUs to reduce overhead when all traffic is kept within the host itself.

How to detect underlying network problems affecting TCP

Sometimes auto-tuning is configured correctly, as are RSS and VMQ, but TCP performance remains poor. In these cases, it's worth it. scroll down to the package details with traffic capture tools such as Microsoft Network Monitor, Wireshark, or the built-in tracing capabilities of Windows.

Capture traffic to analyze retransmissions and losses

To obtain low-level records you can:

  1. Initiate a capture at both ends of the connection using Network Monitor or Wireshark, or use the built-in Windows trace from an administrator console:

    NETSH TRACE START CAPTURE=YES REPORT=DISABLED TRACEFILE=<ruta_archivo>.etl MAXSIZE=512

  2. Launch a test with ctsTraffic or another tool that generates controlled TCP traffic and produces a .csv file with statistics.
  3. Stop the recording with:

    NETSH TRACE STOP

Once the traffic has been captured, the file can be opened in Network Monitor, and filtered by TCP retransmissions (for example using Property.TCPRetransmit==1 && tcp.Port==4444) and locate frames that are sent multiple times without receiving confirmation.

If, when comparing the client and server captures, you see that Some packets leave the sender but never reach the receiver.You have a clear indication that there is a loss in some intermediate device (router, switch, firewall, wireless link, etc.). In these cases, rather than adjusting parameters like auto-tuning, RSS, or VMQ, the appropriate course of action is escalate the problem to the network team to review the infrastructure.

TCP ports, netstat tools, and security in Windows

Which ports on your PC are open?

All of the above is based on how they work TCP and UDP ports at the transport layer. Each connection is associated with a pair of ports (source and destination) that indicate which application is communicating with which. In Windows, in addition to physical ports (Ethernet, USB, etc.), there are logical ports numbered addresses that are used for specific services (HTTP on 80, HTTPS on 443, etc.).

To diagnose port conflicts or see which processes are bound to a specific port, Windows offers the tool netstatFor example, to find out which process is using port 8080 in Windows, you can run:

netstat -nao | findstr 8080

The output will show the listening connections and sockets, indicating the local address, port, and PID of the processFrom that PID you can go to the Task Manager or more advanced tools to identify which application it is.

In Linux environments, the typical equivalent would be something like netstat -nepal | grep 8080, whereas in AIX or Solaris there are additional commands (rmsock, pfilesetc.) to reach the process from the socket. The goal in all cases is the same: find out who is securing a specific port to avoid conflicts and diagnose problems.

In Windows 10 and 11 it is also possible to list all active ports and connections with:

netstat -ab

This command may take a few minutes and displays, for each connection, the associated executable and the ports it is using. Stateful sockets LISTENING They indicate listening ports, while connected ports reflect active communications. It's a very useful tool for detect unexpected services or applications that are exposing ports they shouldn't be.

For those who prefer graphical tools, there are utilities such as TCPView o CurrPorts These interfaces display, in a user-friendly way, all the processes using the network, local and remote ports, protocols, and the status of each connection. From them, you can even... close specific connections, complete processes or generate detailed reports.

Controlling open ports is essential not only for performance, but also for the securityEvery listening port is a potential entry point for malware, Trojans, brute-force attacks, or automated scans from the internet. That's why Windows combines these diagnostic tools with mechanisms like... Windows Firewall, security policies, integrated antivirus and antimalware.

Ultimately, understanding how it works TCP auto-tuningKnowing how to check its status and how it relates to other elements of the network stack (RSS, VMQ, loopback, open ports, firewall, etc.) allows you to have much finer control over the connection: you can get the most out of fast lines when the infrastructure supports it, or prioritize stability and compatibility when there is old hardware in between, all while knowing what changes you make, how to measure their impact and how to undo them if you are not convinced.

What is QoS Packet Scheduler and does it actually reserve bandwidth?
Related article:
What is QoS Packet Scheduler and does it really reserve bandwidth?
Cristian Garcia

Cristian Garcia

Passionate about technology since he was little. I love being up to date in the sector and, above all, communicating it. That is why I have been dedicated to communication on technology and video game websites for many years. You can find me writing about Android, Windows, MacOS, iOS, Nintendo or any other related topic that comes to mind.