日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

Windows的TCP协议参数

發布時間:2023/12/4 综合教程 38 生活家
生活随笔 收集整理的這篇文章主要介紹了 Windows的TCP协议参数 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

注冊表編輯器:regedit

表項:HKEY_LOCAL_MACHINESYSTEMCurentControlSetServicesTcpipParameters

窗口擴大因子 & 時間戳選項

Tcp1323Opts REG_DWORD 0x00000001 (1)

Tcp1323Opts的取值如下:

0 - disable RFC 1323 options.禁用窗口擴大因子和時間戳選項,是默認值。

1 - window scaling enabled only.只啟用窗口擴大因子選項。

2 - timestamp enabled only.只啟用時間戳選項。

3 - both options enabled.同時啟用窗口擴大因子和時間戳選項。

SACK選項

SackOpts REG_DWORD 0x00000001 (1)

SackOpts取值范圍為0 | 1,默認值為1.

描述:

Enables and disables the Selective Acknowledgement (SACK) feature of Windows Server 2003 TCP/IP.

SACK is specified in RFC 2018.

TcpMaxDupAcks

TcpMaxDupAcks REG_DWORD 0x00000002 (2)

TcpMaxDupAcks的取值范圍為1-3,默認為2.而Linux的默認值為3.

描述:

Specifies how many duplicate ACks (ACKs for the same sequence numbers) constitute a signal to

retransmit a segment.

When data arrives with a sequence number that is greater than expected, the receiver assumes that data

with the expected number was dropped, and it immediately sends an ACK with the ACK number set to the

expected sequence number. The receiver sends ACKs set to the same missing number each time it receives

a TCP segment that has a sequence number greater than expected.

The sender recognizes the duplicate ACKs and sends the missing segment.

擁塞控制算法

微軟最新的TCP擁塞控制算法為Compound TCP (CTCP),windows 7默認不啟用。

(1)windows Vista/2008/7

CTCP is enabled by default in computers running beta versions of Windows Server 2008 and disabled

by default in computers running Windows Vista and 7.

CTCP can be enabled with the command:

> netsh interface tcp set global congestionprovider=ctcp

or disabled with the command:

> netsh interface tcp set global congestionprovider=none

To display the current setting for CTCP use:

> netsh interface tcp show global

Parameter "Add-On Congestion Control Provider" will either have a value of "none" if CTCP is disabled

or "ctcp" if it is enabled.

(2)Windows 8

CTCP is now enabled using PowerShell as netsh is deprecated:

> set-nettcpsetting -Settingname Custom -CongestionProvider CTCP

(3)Windows 2003 & XP x64

A hotfix is available that adds CTCP support to 64 bit Windows XP and Windows Server 2003.

The following registry key can be set to 1 to enable, or 0 to disable:

> HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParametersTCPCongestionControl

最大接收窗口

TcpWindowSize REG_DWORD number of bytes

取值范圍:0-0x3FFFFFFF.

描述:

In practice the TCP/IP stack will round the number set to the nearest multiple of maximum segment size

(MSS)。 Values greater than 64KB can be achieved only when connecting to other systems that support

RFC 1323 Window Scaling.

初始值

the smaller of the following values:

0xFFFF (65536)

GlobalMaxTcpWindowSize

The larger of four times the MSS (5840)

16384 rounded up to an even multiple of the MSS

The stack also tunes itself based on the media speed:

Below 1 Mbps: 8KB

1 Mbps - 100 Mbps: 17KB

Greater than 10 Mbps: 64KB

This parameter determines the maximum TCP receive window size offered.

全局最大接收緩存

GlobalMaxTcpWindowSize REG_DWORD number of bytes

取值范圍:0-0x3FFFFFFF.

Default: This parameter does not exist by default.

描述:

Determines the largest TCP receive window that the system offers.

The TcpWindowSize parameter can be used to set the receive window on a per-interface basis.

This parameter can be used to set a global limit for the TCP window size on a system-wide basis.

總結

以上是生活随笔為你收集整理的Windows的TCP协议参数的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。