为了在全局上配置最小RTO、延迟Ack超时、拥塞algo等,在Windows 7及以上环境下,应该使用网络TCP模板。要查看这些内容,可以使用Get-NetTCPSetting 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为了获得单独的连接和应用到它们的设置,可以使用:
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设置的选择?我们有几个低延迟连接,我们希望使用数据中心设置来处理这些连接(以加快从通信故障中恢复),而我仍然不想盲目地将此应用于所有连接。
发布于 2016-03-19 00:13:47
应用于给定连接的设置配置文件基于匹配的传输筛选器。默认情况下,只有一个过滤器将Automatic设置配置文件应用于所有连接,这就是为什么您的配置文件看起来是随机的。
PS C:\> Get-NetTransportFilter
SettingName : Automatic
Protocol : TCP
LocalPortStart : 0
LocalPortEnd : 65535
RemotePortStart : 0
RemotePortEnd : 65535
DestinationPrefix : *新-NetTransportFilter cmdlet允许您根据端口号或IP地址将连接映射到特定的配置文件。
你可以用这样的方法
New-NetTransportFilter -SettingName Datacenter -DestinationPrefix 192.168.75.0/24或
New-NetTransportFilter -SettingName DataCenter -LocalPortStart 0 -LocalPortEnd 65536 -RemotePortStart 1433 -RemotePortEnd 1433https://stackoverflow.com/questions/34619815
复制相似问题