Skip to content

USB Ethernet Adapter Slow Through a Dock? How to Fix It

By Bikram Bhujel

A post went round Hacker News last week that every office IT person should read: "My monitor was cutting my download speed by 75%". Oscar Molnar paid for a 2.5 Gbps line, got 600 Mbps down, and eventually traced it to his USB-C Ethernet adapter plugged into his monitor's USB hub. Upload was fine the whole time, which is what made it so confusing.

The same thing happens with docking stations and USB-C hubs, and it's a classic "the internet is slow" ticket where the internet is fine. This post turns his findings into a test you can run on Windows, Linux or a Mac with iperf3, explains why the adapter drops frames behind a hub, and lists the fixes in the order I'd try them.

iperf3 test comparing a USB Ethernet adapter plugged into a dock against the same adapter plugged directly into the laptop

Quick answer

A USB Ethernet adapter behind a dock or monitor hub can drop incoming frames because the hub adds delay to every USB "send more" round trip. Adapters such as the Realtek RTL8156B only send 4 packets per USB burst, so at around 2 Gbps the adapter's buffer overflows and download speed collapses while upload stays normal. Test it with iperf3 -R through the hub and then plugged straight into the laptop. Fixes, in order: plug the adapter directly into the computer, install the vendor driver, enable flow control on the switch, cap the link at 1 Gbps, or use an adapter with bigger bursts such as an RTL8157.

What Oscar found

His setup was a MacBook Pro, a Studio Display with everything plugged into it for one-cable switching, a UGREEN 2.5G USB-C adapter (Realtek RTL8156B) plugged into the display, and a UniFi router. You can read the whole investigation in his original write-up. The short version:

TestResult
Adapter in the monitor's hubAbout 600 Mbps down, 2.4 Gbps up
Same adapter straight into the Mac2.3 Gbps on iperf3, full speed both ways
Realtek's own driver instead of the generic oneAbout 1.1 Gbps down through the hub
Flow control turned on in the routerAbout 2 Gbps down
5G adapter with an RTL8157 chip, through the hubZero dropped frames at 2.4 Gbps

The clue was in his ping test: during a download, pings to other wired machines failed about 10% of the time over the adapter, yet the Mac's logs showed no dropped frames. The adapter was throwing frames away before the computer ever saw them.

Why a hub makes the adapter drop frames

When a computer reads from a USB 3 device, the device sends a burst of packets, then waits for the host to say "send more". The size of that burst is fixed by the device. In Oscar's measurements, his SSD enclosure sent 16 packets per burst; the RTL8156B adapter sent only 4.

Behind the monitor's hub, each "send more" took about 7.6 microseconds to come back, on top of about 8.2 microseconds to move the 4 KB burst. Do the maths and the adapter can only drain to the computer at roughly 2 Gbps, about 168,000 frames a second in his counters. The router keeps pushing 2.5 Gbps in. The adapter's small buffer fills, overflows and drops frames, TCP backs off hard, and your download falls apart.

Upload doesn't suffer because the computer is the one pushing data out, and it isn't waiting on the adapter's tiny bursts. That's why the symptom is so odd: one direction perfect, the other terrible.

The RTL8157 adapter sends 8 packets per burst over a faster link, which by his numbers raises the ceiling to about 4.5 Gbps. That's well above the 2.5 Gbps coming in, so the buffer never fills.

Step 1: Prove it's the hub with iperf3

iperf3 measures raw speed between two machines on your own network, so your ISP is out of the picture. Put iperf3 on any wired machine (a NAS, a Linux box, another PC) at, say, 192.168.0.50:

# on the wired machine
iperf3 -s

Then on the laptop, run the test with the adapter in the dock, and again with the adapter plugged straight into the laptop:

# download direction (server sends to you), 4 parallel streams, 20 seconds
iperf3 -c 192.168.0.50 -R -P 4 -t 20

# upload direction for comparison
iperf3 -c 192.168.0.50 -P 4 -t 20

If download through the dock is far lower than download direct, and upload is fine both ways, you've found the same problem. To see the drops themselves, send UDP at a fixed rate and read the loss column:

iperf3 -c 192.168.0.50 -R -u -b 2G -t 10

A few tenths of a percent is noise. Several percent at 2 Gbps that disappears when you plug in directly is the hub.

One caveat: this only shows up above about 2 Gbps. A 1 Gbps adapter or a 1 Gbps switch port will never hit it, which is why most office docks seem fine until someone upgrades to 2.5G.

Step 2: Check the adapter and the USB link

Windows

# which adapter, which chip, what link speed
Get-NetAdapter | Select-Object Name, InterfaceDescription, LinkSpeed

# frames the adapter threw away on receive
Get-NetAdapterStatistics -Name "Ethernet 2" | Select-Object ReceivedDiscardedPackets, ReceivedPacketErrors

Replace "Ethernet 2" with your adapter's name. A Realtek USB adapter shows up as something like "Realtek USB 2.5GbE Family Controller".

Linux

# USB tree with negotiated speeds: 5000M or 10000M is USB 3, 480M means you're on USB 2
lsusb -t

# burst size the adapter advertises (Realtek vendor ID 0bda)
sudo lsusb -v -d 0bda: | grep -E 'wMaxPacketSize|bMaxBurst'

# driver counters, look for rx drops or fifo errors
ethtool -S enx001122334455 | grep -i -E 'drop|fifo|err'

bMaxBurst counts the packets after the first one, so 3 means 4 packets per burst and 7 means 8. If lsusb -t shows 480M, you have a different, simpler problem: the dock port is running at USB 2 speed and will never get near 1 Gbps.

Step 3: Fix it, easiest first

  1. Plug the adapter straight into the computer. Not elegant, but it removes the hub delay completely. Keep the dock for the screen and peripherals.
  2. Install the chip maker's driver. For Oscar, Realtek's own macOS driver almost doubled the speed through the hub. On Windows, get the current driver from Realtek or the adapter's maker rather than relying on the generic one.
  3. Turn on flow control. With flow control, the adapter sends a "pause" frame and the switch buffers the data instead of the adapter dropping it. It took Oscar from about 1.1 to about 2 Gbps. It needs support on the switch or router port and on the adapter (on Windows, look for "Flow Control" under the adapter's Advanced properties). The catch: it can add latency for other devices on that switch, which is why he didn't want it always on.
  4. Cap the link speed. If you don't need 2.5G at your desk, set the adapter or switch port to 1 Gbps. A steady 940 Mbps beats a collapsing 600.
  5. Use an adapter that sends bigger bursts. The RTL8157-based 5G adapter he bought had no drops at all through the same hub. Check bMaxBurst before buying a whole batch for the office.
  6. Try the dock's built-in Ethernet. Many Thunderbolt docks have a network chip on a different path from the downstream USB ports. Test it the same way; sometimes it's better, sometimes it's the same chip.

How to roll back

Nothing here is permanent. To undo flow control, switch it off again on the switch port and in the adapter's Advanced properties (or sudo ethtool -A <iface> rx off tx off on Linux). To remove a vendor driver on Windows, roll it back in Device Manager under the adapter's Driver tab. A link speed cap is undone by setting the port back to Auto.

A few things I learned

  • Asymmetric speed is a clue, not a coincidence. Fast upload with slow download on the same cable points to the receive path.
  • "No errors in the logs" can still mean drops. The adapter can discard frames before the OS knows they existed.
  • Test inside your network first. iperf3 between two of your own machines rules out the ISP in a minute.
  • Chip and burst size matter more than the box. Two adapters with the same "2.5G" label can behave completely differently behind a hub.

For more home networking fixes, see how I share mobile internet to a router and how to use a laptop as a second monitor. My Homelab Intelligence page covers the rest of my network. If your office has "slow internet" complaints you can't pin down, that's the kind of thing my network troubleshooting services are for.

Frequently asked questions

Why is my USB Ethernet adapter slow when plugged into a dock or monitor?

The dock or monitor hub adds delay to each USB round trip. Adapters that send small bursts, such as the Realtek RTL8156B with 4 packets per burst, can't empty their buffer fast enough above about 2 Gbps, so they drop incoming frames. Download speed collapses while upload stays normal.

Why is only my download speed slow and not upload?

On download, the network pushes data into the adapter faster than it can pass it to the computer through the hub, so its buffer overflows and frames are dropped. On upload, the computer sends data out and isn't waiting on the adapter's small USB bursts, so it runs at full speed.

How do I test a USB Ethernet adapter with iperf3?

Run iperf3 -s on a wired machine on your network, then on the laptop run iperf3 -c with that machine's IP and the -R flag to test download. Repeat with the adapter in the dock and plugged directly into the laptop. A big gap in download speed points to the hub.

Does flow control fix slow USB Ethernet adapters?

It can help a lot. With flow control enabled on both the switch port and the adapter, the adapter asks the switch to pause instead of dropping frames. In one test it raised download speed from about 1.1 to about 2 Gbps, but it can add latency for other devices on the same switch.

Which USB Ethernet adapter works best behind a dock?

Choose one whose chip sends larger USB bursts. In testing, an RTL8157-based 5 Gbps adapter sending 8 packets per burst had zero dropped frames at 2.4 Gbps through the same hub where an RTL8156B adapter dropped heavily. Plugging the adapter directly into the computer also avoids the problem.

Comments

Questions and corrections are welcome. I read every comment before it appears, and remove spam and promotional links.