From 997fbd9c7646a7f1d6c56df7b3548eebadb6c844 Mon Sep 17 00:00:00 2001 From: CREATIVE_tg1 Date: Tue, 9 Jun 2026 13:13:24 +0000 Subject: [PATCH] =?UTF-8?q?windows:=20win-network-boost.ps1=20=E2=80=94=20?= =?UTF-8?q?TCP,=20DNS,=20RSS,=20throttling=20off?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windows/README.md | 14 +++++++++ windows/win-network-boost.ps1 | 55 +++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 windows/README.md create mode 100644 windows/win-network-boost.ps1 diff --git a/windows/README.md b/windows/README.md new file mode 100644 index 0000000..465ec6c --- /dev/null +++ b/windows/README.md @@ -0,0 +1,14 @@ +# windows/ + +Скрипты для Windows 11. + +## win-network-boost.ps1 + +Улучшение интернет-соединения: отключение throttling, Nagle, TCP-автотюнинг, DNS → Cloudflare, RSS по ядрам. + +**Запуск от админа:** + +```powershell +Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass +.\win-network-boost.ps1 +``` diff --git a/windows/win-network-boost.ps1 b/windows/win-network-boost.ps1 new file mode 100644 index 0000000..0479e50 --- /dev/null +++ b/windows/win-network-boost.ps1 @@ -0,0 +1,55 @@ +# win-network-boost.ps1 — улучшение интернет-соединения на Windows 11 +# Запуск от админа: PowerShell → правый клик → Run as Administrator → .\win-network-boost.ps1 + +Write-Host "=== Network Boost — Windows 11 ===" -ForegroundColor Cyan +Write-Host "" + +# 1. Network Throttling — снимает ограничение на игровой трафик +Write-Host "[1/5] Network throttling off..." -ForegroundColor Yellow +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /t REG_DWORD /d 0xffffffff /f | Out-Null +Write-Host " OK" + +# 2. Nagle's algorithm off — меньше задержка TCP +Write-Host "[2/5] Nagle off..." -ForegroundColor Yellow +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "TCPNoDelay" /t REG_DWORD /d 1 /f | Out-Null +Write-Host " OK" + +# 3. TCP autotuning — нормальный уровень (не отключен) +Write-Host "[3/5] TCP autotuning..." -ForegroundColor Yellow +netsh int tcp set global autotuninglevel=normal >$null +netsh int tcp set global rss=enabled >$null +netsh int tcp set global chimney=enabled >$null +netsh int tcp set global initialRto=2000 >$null +Write-Host " OK" + +# 4. DNS — Cloudflare (быстрее провайдерского) +Write-Host "[4/5] DNS → Cloudflare..." -ForegroundColor Yellow +$ifaces = Get-NetAdapter | Where-Object {$_.Status -eq "Up"} +foreach ($iface in $ifaces) { + Set-DnsClientServerAddress -InterfaceIndex $iface.InterfaceIndex -ServerAddresses "1.1.1.1","1.0.0.1" + Write-Host " $($iface.Name): 1.1.1.1, 1.0.0.1" +} + +# 5. RSS на сетевых адаптерах +Write-Host "[5/5] RSS (Receive Side Scaling)..." -ForegroundColor Yellow +foreach ($iface in $ifaces) { + Set-NetAdapterRss -Name $iface.Name -Enabled $true -MaxProcessors 4 2>$null + Write-Host " $($iface.Name): RSS ON" +} + +# Сброс DNS кэша +ipconfig /flushdns >$null + +Write-Host "" +Write-Host "============================================" -ForegroundColor Cyan +Write-Host " Готово" -ForegroundColor Green +Write-Host "============================================" -ForegroundColor Cyan +Write-Host "" +Write-Host "Что сделано:" +Write-Host " - Network throttling OFF (снято ограничение)" +Write-Host " - Nagle OFF (меньше задержка TCP)" +Write-Host " - TCP autotuning normal + RSS + Chimney" +Write-Host " - DNS → Cloudflare (1.1.1.1)" +Write-Host " - RSS по ядрам" +Write-Host "" +Write-Host "Для полного эффекта — перезагрузи ПК." -ForegroundColor Yellow