我有兩台 Windows Server 2019,它們之間的往返時間為 88 毫秒。當我嘗試使用 iperf3 測量頻寬時,我在單一流的兩個方向上僅獲得約 16 Mbits/sec。為了獲得分配的1 Gbits/s 的實際頻寬,我需要將視窗大小增加到1M,並使用-w 1M -P 10 在10 個並行流中運行它。獲得了良好的性能。
我可以做些什麼來提高單流效能嗎?事情是這樣的:Windows Server Backup 受此數量限制。一個簡單的備份大約需要2-4小時才能完成(複製相同大小的檔案需要15分鐘)。
以下是兩台伺服器上的設定:
netsh int tcp 顯示全域
TCP Global Parameters
----------------------------------------------
Receive-Side Scaling State : enabled
Receive Window Auto-Tuning Level : normal
Add-On Congestion Control Provider : default
ECN Capability : enabled
RFC 1323 Timestamps : disabled
Initial RTO : 3000
Receive Segment Coalescing State : enabled
Non Sack Rtt Resiliency : disabled
Max SYN Retransmissions : 2
Fast Open : disabled
Fast Open Fallback : enabled
HyStart : enabled
Pacing Profile : off
取得 NetTCPSetting -SettingName Internet
SettingName : Internet
MinRto(ms) : 300
InitialCongestionWindow(MSS) : 10
CongestionProvider : CUBIC
CwndRestart : False
DelayedAckTimeout(ms) : 40
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 : Enabled
MaxSynRetransmissions : 2
AutoReusePortRangeStartPort : 0
AutoReusePortRangeNumberOfPorts : 0
Get-NetAdapterAdvancedProperty -名稱外部|設定表格格式-自動調整大小
Name DisplayName DisplayValue RegistryKeyword RegistryValue
---- ----------- ------------ --------------- -------------
External Encapsulation Overhead 0 *EncapOverhead {0}
External Encapsulated Task Offload Enabled *EncapsulatedPacketTaskOffload {1}
External NVGRE Encapsulated Task Offload Enabled *EncapsulatedPacketTaskOffloadNvgre {1}
External VXLAN Encapsulated Task Offload Enabled *EncapsulatedPacketTaskOffloadVxlan {1}
External Flow Control Rx & Tx Enabled *FlowControl {3}
External Header Data Split Disabled *HeaderDataSplit {0}
External Interrupt Moderation Enabled *InterruptModeration {1}
External IPv4 Checksum Offload Rx & Tx Enabled *IPChecksumOffloadIPv4 {3}
External Jumbo Packet Disabled *JumboPacket {1514}
External Large Send Offload V2 (IPv4) Enabled *LsoV2IPv4 {1}
External Large Send Offload V2 (IPv6) Enabled *LsoV2IPv6 {1}
External Maximum Number of RSS Processors 16 *MaxRssProcessors {16}
External Preferred NUMA node 65535 *NumaNodeId {65535}
External Maximum Number of RSS Queues 2 Queues *NumRssQueues {2}
External Packet Priority & VLAN Packet Priority & VLAN Enabled *PriorityVLANTag {3}
External Receive Buffers 512 *ReceiveBuffers {512}
External Recv Segment Coalescing (IPv4) Enabled *RSCIPv4 {1}
External Recv Segment Coalescing (IPv6) Enabled *RSCIPv6 {1}
External Receive Side Scaling Enabled *RSS {1}
External Starting RSS CPU 0 *RssBaseProcNumber {0}
External Virtual Switch RSS Enabled *RssOnHostVPorts {1}
External RSS load balancing profile ClosestProcessor *RSSProfile {1}
External Speed & Duplex Auto Negotiation *SpeedDuplex {0}
External SR-IOV Enabled *SRIOV {1}
External TCP Checksum Offload (IPv4) Rx & Tx Enabled *TCPChecksumOffloadIPv4 {3}
External TCP Checksum Offload (IPv6) Rx & Tx Enabled *TCPChecksumOffloadIPv6 {3}
External Transmit Buffers 512 *TransmitBuffers {512}
External UDP Checksum Offload (IPv4) Rx & Tx Enabled *UDPChecksumOffloadIPv4 {3}
External UDP Checksum Offload (IPv6) Rx & Tx Enabled *UDPChecksumOffloadIPv6 {3}
External Virtual Machine Queues Enabled *VMQ {1}
External VXLAN UDP Destination Port Number 4789 *VxlanUDPPortNumber {4789}
External Wake on Magic Packet Enabled *WakeOnMagicPacket {1}
External Wake on Pattern Match Enabled *WakeOnPattern {1}
External DMA Coalescing Disabled DMACoalescing {0}
External Enable PME Disabled EnablePME {0}
External Interrupt Moderation Rate Adaptive ITR {65535}
External Log Link State Event Enabled LogLinkStateEvent {51}
External Locally Administered Address NetworkAddress {--}
External VLAN ID 0 VlanId {0}
External Wake on Link Settings Disabled WakeOnLink {0}
iperf3 -c 位址
Connecting to host address, port 5201
[ 4] local address port 57162 connected to address port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 768 KBytes 6.28 Mbits/sec
[ 4] 1.00-2.00 sec 2.00 MBytes 16.8 Mbits/sec
[ 4] 2.00-3.00 sec 2.12 MBytes 17.8 Mbits/sec
[ 4] 3.00-4.00 sec 2.00 MBytes 16.8 Mbits/sec
[ 4] 4.00-5.00 sec 2.00 MBytes 16.8 Mbits/sec
[ 4] 5.00-6.00 sec 2.00 MBytes 16.8 Mbits/sec
[ 4] 6.00-7.00 sec 2.00 MBytes 16.8 Mbits/sec
[ 4] 7.00-8.00 sec 2.12 MBytes 17.8 Mbits/sec
[ 4] 8.00-9.00 sec 2.00 MBytes 16.8 Mbits/sec
[ 4] 9.00-10.00 sec 2.12 MBytes 17.9 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 19.1 MBytes 16.0 Mbits/sec sender
[ 4] 0.00-10.00 sec 19.1 MBytes 16.0 Mbits/sec receiver
iperf3 -c 位址 -w 1M -P 10 |選擇字串“SUM”
[SUM] 0.00-1.00 sec 16.1 MBytes 135 Mbits/sec
[SUM] 1.00-2.00 sec 44.1 MBytes 371 Mbits/sec
[SUM] 2.00-3.00 sec 105 MBytes 879 Mbits/sec
[SUM] 3.00-4.00 sec 109 MBytes 913 Mbits/sec
[SUM] 4.00-5.00 sec 110 MBytes 922 Mbits/sec
[SUM] 5.00-6.00 sec 93.1 MBytes 781 Mbits/sec
[SUM] 6.00-7.00 sec 96.0 MBytes 805 Mbits/sec
[SUM] 7.00-8.00 sec 98.2 MBytes 824 Mbits/sec
[SUM] 8.00-9.00 sec 101 MBytes 847 Mbits/sec
[SUM] 9.00-10.00 sec 102 MBytes 858 Mbits/sec
[SUM] 0.00-10.00 sec 874 MBytes 733 Mbits/sec sender
[SUM] 0.00-10.00 sec 874 MBytes 733 Mbits/sec receiver