windows10 CTCP
windows上除了普通tcp之外,有一個CTCP。
據說可以提升長延時情況下的吞吐量。
win7可以方便的通過netsh int tcp set global congestionprovider=ctcp設置。
win10已經不能通過netsh設置了,只能通過power shell,ps設置。
ps里用的是NetTCPsetting,但根據下面鏈接,又說win10這種客戶端操作系統不能修改NetTCPsetting 參數,因為是只讀的。只能在服務器上設置。
https://docs.microsoft.com/en-us/powershell/module/nettcpip/set-nettcpsetting?view=win10-ps
TheSet-NetTCPSettingcmdlet modifies a TCP setting. TCP settings are optimized for different network conditions including latency and congestion. To apply a TCP setting to a port number or destination IP address range, create a transport filter by using the New-NetTransportFilter cmdlet.
Note
You can modify Custom and Non-Custom settings on windows server 2016 and 2019.
You can modify only Custom settings, Internet and Datacenter settings Cannot be modified on windows 2012 or earlier versions.
You cannot modify the NetTCPsetting on Client Operating systems(Windows 7, 8.1 and 10) as they are Read-Only.
-CongestionProvider
Specifies the congestion provider property that TCP uses. The acceptable values for this parameter are:
CTCP. Compound TCP increases the receive window and amount of data sent. CTCP can improve throughput on higher latency connections.
DCTCP. Data Center TCP adjusts the TCP window based on network congestion feedback based on Explicit Congestion Notification (ECN) signaling. DCTCP may improve throughput on low latency links.
Default. Servers use DCTCP by default. Client computers use NewReno. For information about NewReno, seeRFC 3782.
好了,既然不能修改模板的參數。
那如何指定使用哪個模板呢?
說是win10無法修改使用的模板
https://stackoverflow.com/questions/34619815/how-does-windows-decide-which-setting-template-internet-vs-datacenter-is-appli
一個帖子
https://social.technet.microsoft.com/Forums/windows/en-US/f55027d7-f4cf-4681-96b5-b530c9dab7e0/cant-set-netsh-int-tcp-set-supplemental
總結
以上是生活随笔為你收集整理的windows10 CTCP的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JZOJ 4421. aplusb
- 下一篇: vue中 mock使用教程