网络文件传输缓慢

向网络共享、NAS 或服务器复制文件的速度慢得令人抓狂?请按顺序完成以下步骤——双工模式不匹配(第 2 步)是最常见的隐藏原因。

Advertisement · 728×90
📁

网络文件传输缓慢

向网络共享、NAS 或服务器复制文件的速度慢得令人抓狂

⚠ 常见症状

  • 将 1 GB 的文件复制到网络驱动器需要好几分钟,而不是几秒钟
  • 传输速度剧烈波动——先快后突然卡顿
  • 在本地(同一台电脑上)复制文件几乎是瞬间完成,但网络复制却很慢
  • 使用 Wi-Fi 时的速度比有线连接时更差
  • 1

    改用有线以太网连接

    Wi-Fi 传输速度受信号质量、干扰和协议开销的限制。千兆以太网理论速度应能达到 100–115 MB/s——如果有线连接也很慢,说明问题出在其他地方,请继续往下排查。

  • 2

    Check for a duplex mismatch — don't force Gigabit manually

    Device Manager → Network Adapters → right-click Ethernet adapter → Properties → Advanced → check Speed & Duplex. 1.0 Gbps Full Duplex or Auto Negotiate are both correct for gigabit. If it's stuck at 100 Mbps or Half Duplex, don't force it to 1 Gbps — gigabit auto-negotiation is required by spec, and forcing it can break the link entirely on many adapters. A stuck-at-100Mbps link almost always means a bad cable or port, not a setting — see step 5.

  • 3

    检查是否有后台进程占用磁盘或网络 I/O

    任务管理器 → 性能 → 磁盘/网络选项卡。传输过程中接近 100%?说明有后台应用程序(杀毒软件、备份软件、Windows 更新)在争抢资源——暂停它并重新测试。

  • 4

    禁用 SMB1 并确保使用 SMB3

    正在向 Windows 文件共享传输文件?旧版 SMB1 比 SMB3 慢得多,安全性也更低。在提升权限的 PowerShell 中运行以下命令来检查并禁用它:

    # Check SMB1 status
    Get-SmbServerConfiguration | Select EnableSMB1Protocol

    # Disable SMB1 if enabled
    Set-SmbServerConfiguration -EnableSMB1Protocol $false
  • 5

    检查物理网线和交换机端口

    损坏的网线可能会自动降速协商到 100 Mbps(导致传输速度上限为 12 MB/s)→ 尝试更换网线和交换机端口。查看指示灯颜色:橙色/琥珀色 = 100 Mbps,绿色 = 千兆。

  • 1

    改用有线以太网连接

    使用 USB-C/Thunderbolt 转以太网适配器 → 直接连接到路由器/交换机 → 重新执行文件复制并比较速度。

    千兆连接到本地服务器或 NAS 时应能达到 100–115 MB/s。有线连接仍然很慢?瓶颈在于目标设备或网线,而不是你的 Mac 或 Wi-Fi。

  • 2

    确认适配器已协商至千兆速度

    苹果菜单 → 关于本机 → 系统报告 → 网络 → 查看以太网接口的媒体子类型——应显示为 Auto Select 1000baseT

    也可以在终端中查看:

    networksetup -getMedia Ethernet

    如果结果显示为 100baseT,说明存在双工模式不匹配或网线损坏。请尝试更换一根 Cat5e 或 Cat6 网线,并换用交换机上的其他端口。

  • 3

    检查是否有后台进程占用磁盘或网络 I/O

    活动监视器(Spotlight → 活动监视器)→ 网络选项卡 → 查看发送字节数/秒/接收字节数/秒,找出占用大量带宽的进程 → 磁盘选项卡 → 查看是否有大量写入操作。

    常见的“元凶”包括:Time Machine(可在系统设置 → 通用 → Time Machine → 跳过此次备份处暂停)、Spotlight 索引(mds_stores)、杀毒软件对传入文件的扫描。

  • 4

    使用 SMB 连接共享并强制使用 SMB2/3

    访达:⌘K → 输入 smb://server-ip-or-name/share → 连接。macOS 默认使用 SMB2/3,但如果服务器声明支持 SMB1,系统会回退到速度更慢的 SMB1。要检查并强制使用最低 SMB2 版本,请在终端中运行:

    # Confirm which SMB version is in active use
    smbutil statshares -a

    # Force SMB2 as the minimum (survives reboots)
    sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server MinimumProtocol SMB2_10
  • 5

    检查物理网线和交换机端口

    损坏或质量较差的网线可能会自动降速协商到 100 Mbps(使传输速度上限约为 12 MB/s)。

    更换为已知良好的 Cat5e/Cat6 网线 → 尝试其他交换机端口。查看指示灯颜色:琥珀色/橙色 = 100 Mbps,绿色 = 千兆。

  • 1

    改用有线以太网连接并检查链路速度

    # Check your Ethernet adapter's negotiated speed
    ethtool eth0 | grep -E "Speed|Duplex"

    # Install ethtool if needed
    sudo apt install ethtool -y

    应显示 Speed: 1000Mb/sDuplex: Full——如果数值更低,说明存在双工模式不匹配或网线故障。

  • 2

    Don't force Gigabit — check for cable/interface errors instead

    If step 1 showed a speed below 1000Mb/s, resist forcing it — gigabit auto-negotiation is required by spec (IEEE 802.3ab), and disabling it can break the link on many adapters. A stuck-at-100Mb/s connection is almost always a bad cable, port, or an old switch — replace the cable and try a different port (step 5) before touching adapter settings. Check for rising error counts to confirm a cable/port fault:

    # Rising error/drop counts confirm a bad cable or port
    ethtool -S eth0 | grep -iE "error|drop"
  • 3

    检查是否有进程在争抢磁盘和网络 I/O

    # Monitor I/O per process
    sudo iotop -o

    # Install iotop if missing
    sudo apt install iotop -y

    # Check overall disk and network usage
    iostat -x 1 5
  • 4

    检查并禁用 Samba 传输中的 SMB1

    # Check your Samba version and SMB protocol
    smbclient --version

    # Edit smb.conf to disable SMB1
    sudo nano /etc/samba/smb.conf

    [global] 下,添加:

    min protocol = SMB2
    max protocol = SMB3
    sudo systemctl restart smbd
  • 5

    检查物理网线

    # Check interface errors — high error count = bad cable
    ip -s link show eth0

    # Watch for TX/RX errors in real time
    watch -n 1 cat /proc/net/dev

    使用已知良好的网线时错误计数仍在增加 → 说明网卡或交换机端口存在故障。请尝试其他交换机端口。

💡

快速测试:先在你电脑上的两个文件夹之间本地复制同一个文件。如果这样也很慢,说明瓶颈在于磁盘而不是网络——在归咎于网络之前,先检查硬盘是否即将损坏,或 SSD 是否接近存储上限。

Advertisement · 728×90

相关问题

针对此问题的快速解答

First, switch to a wired Ethernet connection if you're on Wi-Fi. Then check your Ethernet adapter settings in Device Manager — it should read 1.0 Gbps Full Duplex or Auto Negotiate; if it's stuck at 100 Mbps, replace the cable rather than forcing gigabit manually, since that can break the link on many adapters. Also check that SMB1 is disabled on the server (use SMB3 instead — it's significantly faster). Finally, check Task Manager for antivirus or backup software scanning files in real time during the transfer, which can cut throughput by 80%.
网速测试衡量的是你与公共互联网的连接速度。而向本地网络驱动器或 NAS 传输文件,完全取决于你本地网络的有线/Wi-Fi 速度、双工设置以及 SMB 协议版本——这些都与你的互联网速度无关。如果你的整体网络也很慢,请参阅我们的网络缓慢指南
这种模式通常是目标驱动器的写入缓存被写满所致(常见于 USB 外置硬盘和部分 NAS 设备)——最初的速度爆发是 RAM 缓存的高速表现,之后会降到硬盘实际的持续写入速度。这也可能表明网卡在持续传输过程中出现了温控降频。可以先用一个较小的测试文件,比较突发速度与持续速度的差异。
🧑‍💻

传输仍然很慢?瓶颈可能出在交换机或服务器上。

交换机配置、网线故障和服务器端的 SMB 设置,通常需要具备网络级访问权限才能诊断和修复。可联系经过认证的 IT 技术人员,获取远程或上门支持。

联系技术人员
Advertisement · 728×90