reminder:
The content described in this article is dependent and may differ from the expectation due to different soft and hard conditions, so please take the actual situation as the criterion for reference only.
1、 What is disconnection
In short, in the daily use process, there are such situations as signal without network, stuck, slow download speed, network delay, etc.
For example, the network signal is clearly full, but login to WeChat still shows that the current network is unavailable; Another example is listening to online music and suddenly buffering off and on.
2、 Cause analysis
After consulting online materials and analysis, it can be determined that it is basically related to TSO services.
The full name of TSO is TCP Segmentation Offload, that is, TCP Segmentation Offload, also known as LSO, Large Send Offload)。 Segmentation refers to dividing large data blocks into smaller data segments. Unloading refers to the practice of moving workload from CPU to network card. Uninstalling this work can save CPU cycles and generally improve packet processing performance. That is, TSO is a technology that uses a small amount of processing power of the network card to reduce the load of data packets sent by the CPU, Support of network card hardware and driver is required 。
To put it simply, the TSO service is abnormal due to driver or hardware problems, such as insufficient heat dissipation. In this case, just turn off the TSO service.
3、 Operation command
1. Esxi kernel
That is, VMKernel, which is connected to the Esxi master through SSH for execution.
1. View Command
List network cards:
[ root@vn :~] esxcli network nic list Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description ------ ------------ ------------- ------------ ----------- ----- ------ ----------------- ---- ----------- vmnic0 0000:01:00.0 igc-community Up Up 1000 Full * 1500 Intel Corporation Ethernet Controller I226-V vmnic1 0000:02:00.0 igc-community Up Up 1000 Full * 1500 Intel Corporation Ethernet Controller I226-V
View the TSO service status of the specified network card:
[ root@vn :~] esxcli network nic tso get -n vmnic0 NIC Value ------ ----- vmnic0 on
2. Close command
[ root@vn :~] esxcli network nic software set --ipv4tso=0 -n vmnic0 [ root@vn :~] esxcli network nic software set --ipv6tso=0 -n vmnic0
3. Start command
[ root@vn :~] esxcli network nic software set --ipv4tso=1 -n vmnic0 [ root@vn :~] esxcli network nic software set --ipv6tso=1 -n vmnic0
2. Esxi Console Service
Log in to the Esxi console through the webpage and find Management System Advanced Settings.
1. View Command
Search for the keyword TSO, and you can find two parameters, namely Net.UseHwTSO and Net.UseHwTSO6 , if the parameter value is one Means enabled, zero Is disabled.
2. Close command
Select the above two parameters, click Edit, and set the parameter value to zero Indicates off (disabled).
3. Start command
Select the above two parameters, click Edit, and set the parameter value to one Indicates on (enabled).
3. VM Virtual Machine
For Linux systems, you can use ethtool Command.
1. View Command
# ethtool --show-offload eth7 Features for eth7: ...... tcp-segmentation-offload: on tx-tcp-segmentation: on tx-tcp-ecn-segmentation: off [fixed] tx-tcp6-segmentation: on udp-fragmentation-offload: off [fixed] .......
Of which tcp-segmentation-offload It is the TSO service.
2. Close command
# ethtool -K eth7 tso off # ethtool -K eth7 gso off
Note that the addition of enabling gso is equivalent to global control and synchronous setting.
3. Start command
# ethtool -K eth0 tso on # ethtool -K eth0 gso on
For Windows system, you can directly view and modify graphically.
In Control Panel - Network and Internet Connection, select the network card to be configured, right-click, and then click attribute , order more to configure , switch to senior Tabs, finding Mass Transfer Offload v2 (IPv4) and Mass Transfer Offload v2 (IPv6) , setting open or close Save it.
Reference article:
1、《 TCP Segmentation Offload 》
2、《 TSO Introduction and Operation 》
3、《 I226-V keeps flowing?! 》