← All Tweaks
Nagle Algorithm
Enable TCPNoDelay
Disable TCP Nagle algorithm at the protocol level
Benefit
Ensures immediate packet transmission without buffering
Impact
highCommands (1)
$nics = @(Get-NetAdapter -ErrorAction SilentlyContinue | Where-Object { $_.Status -eq 'Up' }); if ($nics.Count -eq 0) { Write-Host '[ERR] No active network adapters found'; return } foreach ($nic in $nics) { $nicPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\$($nic.InterfaceGuid)"; if (-not (Test-Path $nicPath)) { Write-Host "[SKIP] $($nic.Name) - registry path missing"; continue } try { New-ItemProperty -Path $nicPath -Name "TCPNoDelay" -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null; Write-Host "[OK] TCPNoDelay=1 on $($nic.Name) ($($nic.InterfaceGuid))" } catch { Write-Host "[ERR] $($nic.Name) - $($_.Exception.Message)" } }