Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/6915b805-87ec-8007-88b5-6ddad7eb36fb
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== ### ==== Zdroj: <code>Network.psm1</code> Rozsah: * Reset stacku: - Invoke-WinsockReset, Invoke-TCPReset, Invoke-IPReset, - Invoke-DNSFlush, Invoke-IPRelease, Invoke-IPRenew, - Reset-Network / Invoke-NetworkResetCore. * TCP global optimalizace: - Show-TCPOptimizationMenu – vizuální menu, - Set-GamingTCPSettings – profil pro low-latency, - Restore-DefaultTCPSettings – návrat na default, - Set-TcpGlobalParameter – wrapper na netsh interface tcp set global. * Per-adapter Nagle tweak: - Show-NagleTweakMenu, Set-NagleInterfaceTweak. * DNS: - Show-MyDNS – přehled DNS per adaptér, - Show-DNSMenu – menu na výběr adapteru + nastavení DNS, - Set-CustomDNS, Reset-DNSToAutomatic. * Ostatní TCP volby v menu: - Show-AutoTuningLevelMenu, Show-ECNCapabilityMenu, Show-TimestampsMenu, - Show-RSCMenu, Show-RSSMenu, Show-HystartMenu, Show-PRRMenu, Show-PacingProfileMenu, - Show-ManualNetshMenu. ===== Funkce: Set-GamingTCPSettings ===== Používá Set-TcpGlobalParameter, což spouští: <syntaxhighlight lang="powershell">netsh.exe interface tcp set global <parameter>=<value> </syntaxhighlight> Nastavuje: * rss = enabled * autotuninglevel = normal * ecncapability = disabled * timestamps = disabled * rsc = enabled * hystart = disabled * prr = enabled * pacingprofile = off Důsledek (odhad + praxe): * RSS enabled – lepší využití více jader pro síť, good. * Autotuning normal – moderní default (pokud jsi neměl severe latency issues, je to OK). * ECN disabled – konzervativní volba, méně problémů s “divokými” routery. * timestamps disabled – menší overhead per packet (pár bytů), lepší latency, ale přicházíš o RTT info. * RSC enabled – receive segment coalescing, snižuje CPU, u her většinou OK. * HyStart disabled – starší kontroverzní behavior, vypnuté je OK. * PRR enabled – moderní reliabilita po ztrátě paketu. * Pacingprofile off – menší smoothing, ostřejší pattern (games preferují). ===== Funkce: Restore-DefaultTCPSettings ===== Nastaví vše zpět na <code>default</code>: * rss = default * autotuninglevel = default * ecncapability = default * timestamps = default * rsc = default * hystart = default * prr = default * pacingprofile = default Tj. vrací netsh globál do tzv. „factory defaults“. ===== Funkce: Show-NagleTweakMenu, Set-NagleInterfaceTweak ===== Registry: * HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{GUID} Hodnoty: * TcpAckFrequency (DWORD) * TCPNoDelay (DWORD) EnableTweak = $true → * TcpAckFrequency = 1 * TCPNoDelay = 1 Disable → * tyto hodnoty maže (Remove-ItemProperty), takže se adaptér vrátí na default chování. Důsledek: * Vypnutí Nagle = small pakety jdou ven okamžitě → lepší odezva, více overheadu. * Doporučeno spíš: - 1–2 adaptéry (hlavní LAN/WiFi), - ne vše (VPN, virtuální, BT). ===== Funkce: Show-DNSMenu, Set-CustomDNS, Reset-DNSToAutomatic, Show-MyDNS ===== * Filtruje adaptéry: - Status -eq 'Up', - ne Virtual|VPN|Loopback. * Při custom DNS: - používá Set-DnsClientServerAddress s konkrétními IP. * Reset: - Set-DnsClientServerAddress ... -ResetServerAddresses. ===== Funkce: Invoke-WinsockReset, Invoke-TCPReset, Invoke-IPReset, Invoke-DNSFlush, Invoke-IPRelease, Invoke-IPRenew, Reset-Network. ===== Interně: * volá: - netsh winsock reset - netsh int ip reset - netsh int tcp reset / netsh int tcp set global default / netsh int ip reset (podle funkce) - ipconfig /flushdns, /release, /renew. To je „těžký“ reset síťového stacku – dobré pro troubleshooting, ale zahodí custom nastavení. ===== Před ===== * Zazálohuj si: - výstup netsh interface tcp show global, - Get-DnsClientServerAddress, - seznam aktivních adaptérů Get-NetAdapter. * Ujasni si, jestli: - chceš jen gaming profil TCP, - nebo i hrabat do Nagle / DNS / reset. Doporučený scénář pro “herní PC” * Set-GamingTCPSettings – safe baseline pro většinu her. * Show-NagleTweakMenu: - aplikuj tweak jen na hlavní fyzický adaptér (např. [LAN Ethernet] nebo [WiFi]), - ne na VPN/virtuály. * DNS: - pokud ISP DNS laguje → nastav třeba 1.1.1.1 / 8.8.8.8 přes Show-DNSMenu. Reset funkce * Používej Reset-Network jen při problémech: - rozbitý stack, DNS fails, apod. * Po resetu zkontroluj: - ipconfig /all, - netsh interface tcp show global, - DNS adresy (aby se nevrátilo něco nechtěného). Revert * Restore-DefaultTCPSettings → když se chování zhorší. * Reset-DNSToAutomatic → když jsi si “zastřelil” DNS.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)