Ubuntu Desktop 22.04有线网络性能随时间下降且不稳定的排查求助
Ubuntu Desktop 22.04有线网络性能随时间下降且不稳定的排查求助
大家好,我遇到了一个困扰很久的网络问题,想请各位帮忙出出主意排查一下:
问题背景
- 我的工作电脑装了Ubuntu Desktop 22.04,是双系统(还有Windows 10),平时主要用Ubuntu,但Windows下完全没这个问题——哪怕连一晚上,第二天网络还是正常的。
- 不管用笔记本自带的PCIe网卡,还是通过USB-C dock连接的USB网卡,都会出现连接有线网络约30分钟后,网络/网速变得极慢的情况;在GUI里手动切换网卡的开关状态,能暂时解决问题,但过30分钟左右又会复发。
- 我怀疑Dell雷电dock里的USB网卡本身质量拉胯(毕竟dock卖600多刀却配廉价网卡,估计是为了赚差价),所以现在主要用笔记本自带的Intel网卡,但问题依然存在。而且我其他几台AMD Ryzen的台式机和笔记本用同版本Ubuntu都没这个问题,不确定这到底是Dell Precision的硬件问题、Ubuntu系统问题,还是驱动层面的问题。
网卡硬件信息(sudo lshw -C network输出)
sudo lshw -C network ... *-network description: Ethernet interface product: Ethernet Connection (14) I219-LM vendor: Intel Corporation physical id: 1f.6 bus info: pci@0000:00:1f.6 logical name: enp0s31f6 version: 11 serial: a0:29:19:5a:cf:b1 size: 1Gbit/s capacity: 1Gbit/s width: 32 bits clock: 33MHz capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=5.15.0-58-generic duplex=full firmware=0.4-4 ip=192.168.10.44 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s resources: irq:134 memory:b5680000-b569ffff *-network description: Ethernet interface physical id: 12 bus info: usb@2:1.4 logical name: enxa02919d88c45 serial: a0:29:19:d8:8c:45 size: 10Mbit/s capacity: 1Gbit/s capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.12.13 duplex=half firmware=rtl8153b-2 v1 10/23/19 link=no multicast=yes port=MII speed=10Mbit/s
测速情况
- 系统使用一段时间后的Speedtest结果:
- 切换网卡开关后的Speedtest结果:
- 使用45分钟后的Speedtest结果:
目前我完全没头绪该从哪里入手排查,有没有大佬能给点方向?比如检查驱动日志、调整网卡参数、排查硬件兼容性之类的?
备注:内容来源于stack exchange,提问作者Ali E.




