20.04 上的有线连接比使用 Win10 的 20.04 上的 WiFi 或有线连接慢

20.04 上的有线连接比使用 Win10 的 20.04 上的 WiFi 或有线连接慢

背景:我的连接下载速度为 1000 mb/s,上传速度为 40 mb/s。我经常从有线设备获得非常接近该速度的测试结果。

我最近买了一台便宜的迷你电脑来玩,它预装了 Win10。我把它拆开,通过以太网连接到我的 EdgeSwitch(它本身连接到我的 EdgeRouter),启动 Windows,并进行了一些速度测试,结果范围从使用时的 900+ 下载/40 到speedtest.net使用 Comcast 商业速度测试时高达 1599 下载/43 上传。

然后,我制作了一个装有 20.04 的可启动 USB 盘,重新启动 USB 设备,并在机器上安装了一份全新的 Ubuntu Desktop。现在,仍然使用相同的有线连接,我只能得到 30 分/40 分。如果我禁用以太网连接并通过 WiFi 连接,下载速度为 200-300/上传速度为 40。如果我将我的任何一台笔记本电脑插入 Ubuntu 盒子使用的同一根电缆,我的下载速度将再次达到 900+ mb/s。

到目前为止我已经尝试过的事情(经过我能想到的所有疯狂的谷歌搜索):

  • 该机器有 Realtek RTL8111/RTL8168 NIC。我删除了可能导致问题的 r8169 驱动程序,并安装了 r8168 驱动程序。没有区别。
  • 使用 ethtool 验证接口是否设置为全双工(确实如此)。尝试关闭自动协商并手动将其设置为全双工。没有区别。
  • 检查 IP 路由是否有任何异常。默认路由是正确的。
  • 已禁用 IPv6。
  • 检查了所有相关的 BIOS 设置。尝试禁用 LAN 唤醒。BIOS 中没有其他与 NIC 相关的设置。没有区别。

如果有人能想到其他可以检查/尝试的方法,我将不胜感激。此时我已经用尽了我的知识。提前致谢。

根据请求,结果sudo lshw -C network(enp1s0 是所讨论的接口):

  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: enp1s0
       version: 15
       serial: 5c:85:7e:40:89:c2
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.048.00-NAPI duplex=full ip=192.168.1.15 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:127 ioport:e000(size=256) memory:a1304000-a1304fff memory:a1300000-a1303fff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 15
       serial: 5c:85:7e:40:89:c3
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.048.00-NAPI latency=0 link=no multicast=yes port=twisted pair
       resources: irq:129 ioport:d000(size=256) memory:a1204000-a1204fff memory:a1200000-a1203fff
  *-network DISABLED
       description: Wireless interface
       product: Wireless 3165
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: wlp4s0
       version: 91
       serial: 24:41:8c:15:f9:6e
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-42-generic firmware=29.1654887522.0 latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:131 memory:a1100000-a1101fff
  *-network:0
       description: Ethernet interface
       physical id: 1
       logical name: veth6ffe1c4
       serial: 6a:02:41:90:a4:6a
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:1
       description: Ethernet interface
       physical id: 2
       logical name: br-4a0d5cc98154
       serial: 02:42:6d:97:46:a3
       capabilities: ethernet physical
       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.18.251.1 link=yes multicast=yes
  *-network:2
       description: Ethernet interface
       physical id: 3
       logical name: veth6b2e330
       serial: 0a:cd:f8:bc:97:4d
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:3
       description: Ethernet interface
       physical id: 4
       logical name: br-8248484a3e46
       serial: 02:42:31:06:62:49
       capabilities: ethernet physical
       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.18.251.129 link=yes multicast=yes
  *-network:4
       description: Ethernet interface
       physical id: 5
       logical name: vethab446ab
       serial: 12:2c:81:08:fa:68
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:5
       description: Ethernet interface
       physical id: 6
       logical name: vetha7734c2
       serial: 2a:83:79:5a:c8:e7
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:6
       description: Ethernet interface
       physical id: 7
       logical name: veth67b3a82
       serial: 56:9d:e3:98:b5:01
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:7
       description: Ethernet interface
       physical id: 8
       logical name: veth7ac8a55
       serial: 66:c0:27:fc:19:56
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:8
       description: Ethernet interface
       physical id: 9
       logical name: vethcefd008
       serial: 5e:42:a4:e0:08:43
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:9
       description: Ethernet interface
       physical id: a
       logical name: veth99ea1fc
       serial: 2e:86:07:86:64:e9
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:10
       description: Ethernet interface
       physical id: b
       logical name: docker0
       serial: 02:42:04:ba:ff:72
       capabilities: ethernet physical
       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes
  *-network:11
       description: Ethernet interface
       physical id: c
       logical name: vethd3648ee
       serial: 32:06:af:d8:c7:92
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:12
       description: Ethernet interface
       physical id: d
       logical name: veth6ae5338
       serial: 76:91:8e:00:9a:0b
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:13
       description: Ethernet interface
       physical id: e
       logical name: vethbc28f40
       serial: 8a:ce:b8:73:02:86
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:14
       description: Ethernet interface
       physical id: f
       logical name: veth6278cb8
       serial: de:dd:8b:d6:eb:af
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:15
       description: Ethernet interface
       physical id: 10
       logical name: veth1494606
       serial: ca:4c:79:f9:03:2f
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s

相关内容