为了全局配置最小 RTO;延迟确认超时;Windows 7 及以上系统下的拥塞算法等应该使用网络 TCP 模板。要查看这些,您可以使用 Get-NetTCPSetting powershell cmdlet:
PS C:\Users\Administrator> Get-NetTCPSetting
(...)
SettingName : Datacenter
MinRto(ms) : 20
InitialCongestionWindow(MSS) : 4
CongestionProvider : DCTCP
CwndRestart : True
DelayedAckTimeout(ms) : 10
MemoryPressureProtection : Enabled
AutoTuningLevelLocal : Normal
AutoTuningLevelGroupPolicy : NotConfigured
AutoTuningLevelEffective : Local
EcnCapability : Enabled
Timestamps : Disabled
InitialRto(ms) : 3000
ScalingHeuristics : Disabled
DynamicPortRangeStartPort : 49152
DynamicPortRangeNumberOfPorts : 16384
SettingName : Internet
MinRto(ms) : 300
InitialCongestionWindow(MSS) : 4
CongestionProvider : CTCP
CwndRestart : False
DelayedAckTimeout(ms) : 50
MemoryPressureProtection : Enabled
AutoTuningLevelLocal : Normal
AutoTuningLevelGroupPolicy : NotConfigured
AutoTuningLevelEffective : Local
EcnCapability : Enabled
Timestamps : Disabled
InitialRto(ms) : 3000
ScalingHeuristics : Disabled
DynamicPortRangeStartPort : 49152
DynamicPortRangeNumberOfPorts : 16384
为了获得应用到它们的单个连接和设置,可以使用 Get-NetTCPConnection cmdlet:
PS C:\Users\Administrator> Get-NetTCPConnection
LocalAddress LocalPort RemoteAddress RemotePort State AppliedSetting
------------ --------- ------------- ---------- ----- --------------
(...)
192.168.75.69 63220 192.168.75.66 1433 Established Datacenter
192.168.75.69 63208 192.168.75.61 445 Established Internet
192.168.101.13 63061 185.97.X.X 20467 Established Datacenter
192.168.101.13 63059 209.191.X.X 18083 Established Internet
(...)
我如何影响(或至少如何做出)Internet 与数据中心 TCP 设置的选择? 我们有几个低延迟连接,我们希望使用数据中心设置来处理(以加快从通信故障中恢复),但我仍然不想盲目地将其应用于所有连接。