注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

gmd20的个人空间

// 编程和生活

 
 
 

日志

 
 

2017-05-23-windows10系统修改TCP的timestamp选项.markdown  

2017-05-23 09:43:28|  分类: 程序设计 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

查看当前设置
-----------
netsh interface tcp show global
Get-NetTCPSetting 这个是powershell的命令,netsh在powershell和命令提示符里面都可以运行
使用netsh:
----------
netsh interface tcp set global timestamps=enabled
netsh interface tcp set global timestamps=disabled
使用PowerShell:
---------------
Set-NetTCPSetting -SettingName InternetCustom -Timestamps Disabled
也可以直接在注册表设置:
-----------------------
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
添加此项  Tcp1323Opts
这个值设置tcp的 tcp_timestamep和window_scale 选项.
这个是微软的文档说明
```text
Tcp1323Opts
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Data type   Range Default    value
REG_DWORD   0 | 1 | 2 | 3    3
Description
Determines whether TCP uses the timestamping and window scaling features described in RFC 1323, TCP Extensions for High Performance.
Window scaling permits TCP to negotiate a scaling factor for the TCP receive window size, allowing for a very large TCP receive window of up to 1 GB. The TCP receive window is the amount of data the sending host can send at one time on a connection.
Timestamps help TCP measure round trip time (RTT) accurately in order to adjust retransmission timeouts. The Timestamps option provides two timestamp fields of 4 bytes each in the TCP header, one to record the time the initial transmission is sent and one to record the time on the remote host.
This entry is a 2-bit bitmask. The lower bit determines whether scaling is enabled; the higher bit determines whether timestamps are enabled. To enable a feature, set the bit representing the feature to 1. To disable a feature, set its bit to 0.
Value Meaning
0 (00) Timestamps and window scaling are disabled.
1 (01) Window scaling is enabled.
2 (10) Timestamps are enabled.
3 (11) Timestamps and window scaling are enabled.
Note
Windows 2000 does not add this entry to the registry. You can add it by editing the registry or by using a program that edits the registry.
```
https://www.speedguide.net/articles/windows-8-10-2012-server-tcpip-tweaks-5077
https://technet.microsoft.com/en-us/library/cc731521(v=ws.10).aspx
https://technet.microsoft.com/itpro/powershell/windows/nettcpip/get-nettcpsetting
https://technet.microsoft.com/en-us/library/cc938205.aspx
  评论这张
 
阅读(25)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017