|
本帖最后由 fulibo 于 2025-10-9 15:23 编辑
MaxFreeTcbs的参数修改测试了起码几十次,
终于定稿了!
就是2048+8192
注意:一般家庭用的参数,服务器不要这么设置!
速度提升明显
Windows Registry Editor Version 5.00
;MTU=1492
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"MTU"=dword:000005d4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"MTU"=dword:000005d4
;64240
;要通过 WAN 发送大量数据,100Mbps=524288
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpWindowSize"=dword:0000faf0
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"TcpWindowSize"=dword:0000faf0
;1048576
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"GlobalmaxTcpWindowSize"=dword:00100000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"GlobalmaxTcpWindowSize"=dword:00100000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"EnablePMTUBHDetect"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"EnablePMTUBHDetect"=dword:00000000
;通过修改调整这个动态端口的范围,可以提高系统的数据吞吐率
;默认设置为 5000。范围是 5,000-65,534(端口号)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"MaxUserPort"=dword:0000fffe
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"MaxUserPort"=dword:0000fffe
;默认512,可选范围:64-65536,家庭用=8192,服务器=65536
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"MaxHashTableSize"=dword:00002000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"MaxHashTableSize"=dword:00002000
;更改 TCB 表的大小,家庭用=2048,服务器=16000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"MaxFreeTcbs"=dword:00000800
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"MaxFreeTcbs"=dword:00000800
;系统的IP路由功能,0=系统不会充当路由器(适用于普通客户端,非服务器/网关
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"IPEnableRouter"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"IPEnableRouter"=dword:00000000
;死网关检测”,自动切换到备用网关(当主网关失效时,1=启用
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"DeadGWDetectDefault"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"DeadGWDetectDefault"=dword:00000001
;启动传输单元缓冲区自动调整,减少网络反应时间,
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"Tcp1323Opts"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"Tcp1323Opts"=dword:00000003
;禁止IP源路由,缺省项值为1,表示不转发源路由包,项值设为0,表示全部转发,设置为2,表示丢弃所有接受的源路由包
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"DisableIPSourceRouting"=dword:0000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"DisableIPSourceRouting"=dword:0000001
;限制处于TIME_WAIT状态的最长时间,最低为30秒,最高为300秒
;设置一个较小的超时时间可以使TCP连接更快地回收资源,但也可能导致连接过早地被关闭
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpTimedWaitDelay"=dword:0000001e
"TcpFinWait2Timeout"=dword:0000001e
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"TcpTimedWaitDelay"=dword:0000001e
"TcpFinWait2Timeout"=dword:0000001e
;强制关闭 TCP 连接之前等待的秒数
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpFinWait2Delay"=dword:0000001e
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"TcpFinWait2Delay"=dword:0000001e
;优化网络快速转发机制,提高上网速度
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"SackOpts"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"SackOpts"=dword:00000001
;触发重传所需的确认包(ACK)的最大重复次数,参数的取值范围为1到3,默认值为2,在Linux系统中,默认值为3
;增加该值可以减少不必要的重传,但可能会增加数据丢失的风险;减少该值可以更快地检测到数据丢失,但可能会增加网络负担
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpMaxDupAcks"=dword:00000002
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"TcpMaxDupAcks"=dword:00000002
;;服务器列表维护
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Bowser\Parameters]
"MaintainServerList"="no"
;QOS吞吐级别3
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\QoS]
"Tcp Autotuning Level"="normal"
@=dword:00000000
;网络加速
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile]
"NetworkThrottlingIndex"=dword:ffffffff
"SystemResponsiveness"=dword:0000000a ;服务器操作系统默认设置为100,表示后台服务应优先于任何多媒体应用程序
;如果TCP连接空闲超过60秒,系统会自动发送保活探测包KeepAlive以检测对方主机是否仍在线
;保持连接可以被攻击者利用建立大量的连接造成服务器拒绝服务。降低这个参数值有助于系统更快速地断开非活动会话。
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"KeepAliveTime"=dword:0000ea60
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"KeepAliveTime"=dword:0000ea60
;如果第一次保活探测未收到响应,系统会每隔5秒重试一次,直到对方主机恢复响应或连接被判定为断开
;主要用于检测并清除无效连接防止资源被占用
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"KeepAliveInterval"=dword:00001388
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"KeepAliveInterval"=dword:00001388
; 启用防护机制,SynAttackProtect=1=减少重传次数,2=优化半连接队列管理
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"SynAttackProtect"=dword:00000001 ;启用 SYN 洪水攻击防护
"StrictTimeWaitSeqCheck"=dword:00000001 ;丢弃不符合预期序列号的 TIME_WAIT 包,增强安全性
"TcpMaxPortsExhausted"=dword:00000005
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"SynAttackProtect"=dword:00000001 ;启用 SYN 洪水攻击防护
"StrictTimeWaitSeqCheck"=dword:00000001 ;丢弃不符合预期序列号的 TIME_WAIT 包,增强安全性
"TcpMaxPortsExhausted"=dword:00000005
;优化 ARP 缓存管理,防止 ARP 欺骗攻击
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"ArpCacheLife"=dword:00000078
"ArpCacheMinReferencedLife"=dword:00000258
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"ArpCacheLife"=dword:00000078
"ArpCacheMinReferencedLife"=dword:00000258
|
评分
-
查看全部评分
|