Windows Server 2012 R2和TCP慢启动和Hyper-v主机

我需要更改TCP InitialCongestionWindow的默认值

我读了这个文件: https : //www.iispeed.com/blog/windows-server-2012-and-tcp-slow-start

我在我们的hyper-v托pipe的虚拟服务器2012 R2上试用了它。

PS C:\>Set-NetTCPSetting -SettingName Custom -InitialCongestionWindow 10 -CongestionProvider CTCP 

我得到错误:

 Set-NetTCPSetting : No MSFT_NetTCPSetting objects found with property 'SettingName' equal to 'Custom'. Verify the valu e of the property and retry. At line:1 char:1 + Set-NetTCPSetting -SettingName Custom -InitialCongestionWindow 10 -CongestionPro ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Custom:String) [Set-NetTCPSetting], CimJobException + FullyQualifiedErrorId : CmdletizationQuery_NotFound_SettingName,Set-NetTCPSetting 

问题是我怎样才能实现IISspeed文档讲述的内容? 如果我在Hyper-V机器上更改这个我是否也需要在超级主机-v主机上改变这个以实际上有所作为?

我是否也应该对SSL端口443进行相同的更改?

我运行这个命令:

 PS C:\Users\Administrator> Get-NetTCPSetting SettingName : Automatic MinRto(ms) : InitialCongestionWindow(MSS) : CongestionProvider : CwndRestart : DelayedAckTimeout(ms) : DelayedAckFrequency : MemoryPressureProtection : AutoTuningLevelLocal : AutoTuningLevelGroupPolicy : AutoTuningLevelEffective : EcnCapability : Timestamps : InitialRto(ms) : ScalingHeuristics : DynamicPortRangeStartPort : DynamicPortRangeNumberOfPorts : AutomaticUseCustom : NonSackRttResiliency : ForceWS : MaxSynRetransmissions : SettingName : InternetCustom MinRto(ms) : 300 InitialCongestionWindow(MSS) : 4 CongestionProvider : CTCP CwndRestart : False DelayedAckTimeout(ms) : 50 DelayedAckFrequency : 2 MemoryPressureProtection : Enabled AutoTuningLevelLocal : Normal AutoTuningLevelGroupPolicy : NotConfigured AutoTuningLevelEffective : Local EcnCapability : Enabled Timestamps : Disabled InitialRto(ms) : 3000 ScalingHeuristics : Disabled DynamicPortRangeStartPort : 49152 DynamicPortRangeNumberOfPorts : 16384 AutomaticUseCustom : Disabled NonSackRttResiliency : Disabled ForceWS : Disabled MaxSynRetransmissions : 2 SettingName : DatacenterCustom MinRto(ms) : 20 InitialCongestionWindow(MSS) : 4 CongestionProvider : DCTCP CwndRestart : True DelayedAckTimeout(ms) : 10 DelayedAckFrequency : 2 MemoryPressureProtection : Enabled AutoTuningLevelLocal : Normal AutoTuningLevelGroupPolicy : NotConfigured AutoTuningLevelEffective : Local EcnCapability : Enabled Timestamps : Disabled InitialRto(ms) : 3000 ScalingHeuristics : Disabled DynamicPortRangeStartPort : 49152 DynamicPortRangeNumberOfPorts : 16384 AutomaticUseCustom : Disabled NonSackRttResiliency : Disabled ForceWS : Disabled MaxSynRetransmissions : 2 SettingName : Compat MinRto(ms) : 300 InitialCongestionWindow(MSS) : 2 CongestionProvider : Default CwndRestart : False DelayedAckTimeout(ms) : 200 DelayedAckFrequency : 2 MemoryPressureProtection : Enabled AutoTuningLevelLocal : Normal AutoTuningLevelGroupPolicy : NotConfigured AutoTuningLevelEffective : Local EcnCapability : Enabled Timestamps : Disabled InitialRto(ms) : 3000 ScalingHeuristics : Disabled DynamicPortRangeStartPort : 49152 DynamicPortRangeNumberOfPorts : 16384 AutomaticUseCustom : Disabled NonSackRttResiliency : Disabled ForceWS : Disabled MaxSynRetransmissions : 2 SettingName : Datacenter MinRto(ms) : 20 InitialCongestionWindow(MSS) : 4 CongestionProvider : DCTCP CwndRestart : True DelayedAckTimeout(ms) : 10 DelayedAckFrequency : 2 MemoryPressureProtection : Enabled AutoTuningLevelLocal : Normal AutoTuningLevelGroupPolicy : NotConfigured AutoTuningLevelEffective : Local EcnCapability : Enabled Timestamps : Disabled InitialRto(ms) : 3000 ScalingHeuristics : Disabled DynamicPortRangeStartPort : 49152 DynamicPortRangeNumberOfPorts : 16384 AutomaticUseCustom : Disabled NonSackRttResiliency : Disabled ForceWS : Disabled MaxSynRetransmissions : 2 SettingName : Internet MinRto(ms) : 300 InitialCongestionWindow(MSS) : 4 CongestionProvider : CTCP CwndRestart : False DelayedAckTimeout(ms) : 50 DelayedAckFrequency : 2 MemoryPressureProtection : Enabled AutoTuningLevelLocal : Normal AutoTuningLevelGroupPolicy : NotConfigured AutoTuningLevelEffective : Local EcnCapability : Enabled Timestamps : Disabled InitialRto(ms) : 3000 ScalingHeuristics : Disabled DynamicPortRangeStartPort : 49152 DynamicPortRangeNumberOfPorts : 16384 AutomaticUseCustom : Disabled NonSackRttResiliency : Disabled ForceWS : Disabled MaxSynRetransmissions : 2 

您需要首先创build传输筛选器,将TCP设置指定为NetTcpSetting对象,如下例所示。

 New-NetTransportFilter -SettingName Custom -LocalPortStart 80 -LocalPortEnd 80 -RemotePortStart 0 -RemotePortEnd 65535 

Set-NetTCPSetting命令行使用当你想修改一个设置。 因此,为什么你收到有关未find自定义对象的错误。 创build传输filter后,您的原始命令来修改设置应该工作。

 Set-NetTCPSetting -SettingName Custom -InitialCongestionWindow 10 -CongestionProvider CTCP 

嗨我运行时得到相同的错误:

 PS C:\Windows\system32> Get-NetTransportFilter SettingName : Automatic Protocol : TCP LocalPortStart : 0 LocalPortEnd : 65535 RemotePortStart : 0 RemotePortEnd : 65535 DestinationPrefix : * SettingName : DatacenterCustom Protocol : TCP LocalPortStart : 80 LocalPortEnd : 80 RemotePortStart : 0 RemotePortEnd : 65535 DestinationPrefix : * 

换句话说,已经有一个端口80( DataCenterCustom )filter和另一个其他端口( 自动 ),由于某种原因,我没有权限编辑(我是一个域networking的一部分,我不是在主节点中)。

我所做的是更改Set-NetTCPSettingfilter的名称运行第二部分:

 Set-NetTCPSetting -SettingName DatacenterCustom -InitialCongestionWindow 10 -CongestionProvider CTCP 

那就是全部,现在是Works