我正在使用 Ubuntu 20.04.3 LTS。对于每一个从最近几天开始下载,下载就停止了。无论持续多长时间。我使用过 USB 网络共享或移动热点,结果都一样。速度测试显示我获得了 13mbps,但问题仍然存在。我怀疑这与软件有关,而不是 ISP。到目前为止,我每 30 秒对谷歌进行一次连续 ping,每 15 分钟进行一次速度测试。我的 ISP 多次表现不佳,但还没有糟糕到需要一两个小时才能下载 1.5 MB 的文件,并且间歇性掉线,持续时间不详。
我应该进行哪些测试来深入挖掘?
提前致谢!
更新 1
两个实验:
一直看到有关 org.freedesktop.Tracker1 的消息(在 /var/log/syslog 中,@matigo 在评论中建议)。按照以下方法禁用它每分钟运行一次的跟踪服务
昨天,当我从无线(移动热点)切换到 USB 网络共享时,很多更好的体验。USB 网络共享的问题是,即使我将手机移动几米,我的 ISP 的最佳位置也无法使用,因此网络速度会大幅下降(从 13 mbps 下降到 ~3 mbps)
虽然这是使用 USB 网络共享的输出
sudo journalctl -b 0 -u NetworkManager
,正如 @waltinator 所建议的(正在阅读手册页)Jan 19 08:58:50 my-machine systemd[1]: Starting Network Manager... Jan 19 08:58:58 my-machine NetworkManager[903]: <info> [1642562938.9848] NetworkManager (version 1.22.10) is starting... (for the first time) Jan 19 08:58:58 my-machine NetworkManager[903]: <info> [1642562938.9849] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 10-dns-res> Jan 19 08:59:00 my-machine NetworkManager[903]: <info> [1642562940.6347] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager" Jan 19 08:59:00 my-machine systemd[1]: Started Network Manager. Jan 19 08:59:01 my-machine NetworkManager[903]: <info> [1642562941.7495] manager[0x55f6bc7c0010]: monitoring kernel firmware directory '/lib/f> Jan 19 08:59:01 my-machine NetworkManager[903]: <info> [1642562941.7496] monitoring ifupdown state file '/run/network/ifstate'. Jan 19 08:59:02 my-machine NetworkManager[903]: <info> [1642562942.2371] hostname: hostname: using hostnamed Jan 19 08:59:02 my-machine NetworkManager[903]: <info> [1642562942.2371] hostname: hostname changed from (none) to "my-machine" Jan 19 08:59:02 my-machine NetworkManager[903]: <info> [1642562942.2376] dns-mgr[0x55f6bc79e290]: init: dns=systemd-resolved rc-manager=symlin> Jan 19 08:59:02 my-machine NetworkManager[903]: <info> [1642562942.2391] rfkill2: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/000> Jan 19 08:59:02 my-machine NetworkManager[903]: <info> [1642562942.2394] rfkill0: found Wi-Fi radio killswitch (at /sys/devices/platform/acer-> Jan 19 08:59:02 my-machine NetworkManager[903]: <info> [1642562942.2526] manager[0x55f6bc7c0010]: rfkill: Wi-Fi hardware radio set enabled Jan 19 08:59:02 my-machine NetworkManager[903]: <info> [1642562942.2526] manager[0x55f6bc7c0010]: rfkill: WWAN hardware radio set enabled Jan 19 08:59:03 my-machine NetworkManager[903]: <info> [1642562943.3988] Loaded device plugin: NMWifiFactory (/usr/lib/x86_64-linux-gnu/Networ> Jan 19 08:59:04 my-machine NetworkManager[903]: <info> [1642562944.5808] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/Netwo> Jan 19 08:59:04 my-machine NetworkManager[903]: <info> [1642562944.6957] Loaded device plugin: NMTeamFactory (/usr/lib/x86_64-linux-gnu/Networ> Jan 19 08:59:04 my-machine NetworkManager[903]: <info> [1642562944.7319] Loaded device plugin: NMWwanFactory (/usr/lib/x86_64-linux-gnu/Networ> Jan 19 08:59:05 my-machine NetworkManager[903]: <info> [1642562945.3128] Loaded device plugin: NMAtmManager (/usr/lib/x86_64-linux-gnu/Network> Jan 19 08:59:05 my-machine NetworkManager[903]: <info> [1642562945.3134] manager: rfkill: Wi-Fi enabled by radio killswitch; enabled by state > Jan 19 08:59:05 my-machine NetworkManager[903]: <info> [1642562945.3136] manager: rfkill: WWAN enabled by radio killswitch; enabled by state f> Jan 19 08:59:05 my-machine NetworkManager[903]: <info> [1642562945.3137] manager: Networking is enabled by state file Jan 19 08:59:05 my-machine NetworkManager[903]: <info> [1642562945.3139] dhcp-init: Using DHCP client 'internal' Jan 19 08:59:07 my-machine NetworkManager[903]: <info> [1642562947.4575] settings: Loaded settings plugin: ifupdown ("/usr/lib/x86_64-linux-gn> Jan 19 08:59:07 my-machine NetworkManager[903]: <info> [1642562947.4576] settings: Loaded settings plugin: keyfile (internal) Jan 19 08:59:07 my-machine NetworkManager[903]: <info> [1642562947.4576] ifupdown: management mode: unmanaged Jan 19 08:59:07 my-machine NetworkManager[903]: <warn> [1642562947.5149] ifupdown: interfaces file /etc/network/interfaces doesn't exist Jan 19 08:59:09 my-machine NetworkManager[903]: <info> [1642562949.1363] device (lo): carrier: link connected Jan 19 08:59:09 my-machine NetworkManager[903]: <info> [1642562949.1368] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/De> Jan 19 08:59:09 my-machine NetworkManager[903]: <info> [1642562949.1401] manager: (enp5s0): new Ethernet device (/org/freedesktop/NetworkManag> Jan 19 08:59:09 my-machine NetworkManager[903]: <info> [1642562949.1437] device (enp5s0): state change: unmanaged -> unavailable (reason 'mana> Jan 19 08:59:09 my-machine NetworkManager[903]: <info> [1642562949.1706] manager: (wlp4s0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkM> Jan 19 08:59:09 my-machine NetworkManager[903]: <info> [1642562949.1724] device (wlp4s0): state change: unmanaged -> unavailable (reason 'mana> Jan 19 08:59:09 my-machine NetworkManager[903]: <warn> [1642562949.4101] Error: failed to open /run/network/ifstate Jan 19 08:59:09 my-machine NetworkManager[903]: <info> [1642562949.7044] supplicant: wpa_supplicant running Jan 19 08:59:09 my-machine NetworkManager[903]: <info> [1642562949.7053] device (wlp4s0): supplicant interface state: init -> starting
更新 2
这个问题是否可能因为 ISP 端的路由表混乱而持续存在?请参见下面的示例: