See Ash Code logo See Ash Code

Link speed said gigabit. My transfer test disagreed.

Ashlynn Antrobus
• • 3 min read

The NUC negotiated a 1000 Mbps full-duplex Ethernet link. Its Internet download test was getting about 30 Mbps. The laptop, using Wi-Fi, was getting about 160 Mbps.

The link-speed report wasn’t wrong. It just wasn’t measuring the thing that was slow.

An example Internet speed gauge reads 30.15 Mbps.

A separate Internet speed test illustration by Adrian Barquero Rodriguez, CC BY-SA 4.0; unmodified. This is not a screenshot of my test.

My October investigation eventually restored the NUC’s Internet result to about 940 Mbps by disabling a particular combination of offload features. Getting there required discarding one spectacularly misleading test result.

First I had to establish where the traffic went

The initial LAN iperf3 connection timed out because the listening port was blocked by UFW. After addressing that, the tests could run, but the results were still poor.

Then I got a combined result of 49.2 Gbps. On a gigabit interface, that should have made me suspicious immediately. I’d accidentally run the client on the NUC against the NUC’s own address.

These were different paths:

LAN test:      laptop -- Wi-Fi -- router -- Ethernet -- NUC
Internet test: NUC -- Ethernet -- router -- Internet test server
Accidental:   NUC client -- local networking stack -- NUC server

The accidental test hadn’t measured Ethernet throughput. The laptop’s wireless path also meant that its LAN result couldn’t be treated as a clean wired-to-wired gigabit benchmark.

The offload settings changed the Internet result

The interface used the Realtek r8169 driver. ASPM was already disabled, so changing it wasn’t the repair. I tested offload settings before considering a replacement driver on a machine I accessed remotely.

The recorded progression was:

Change or observationResult
Disable TSO, GSO and GROInternet speed test jumped to about 940 Mbps; LAN iperf3 did not show the same recovery
Re-enable GROInternet result fell into the low 700 Mbps range
Try enabling GSO/TSO with other features disabledSome requests failed because of feature dependencies
Enable TSO during further testingThroughput collapsed again
Final working combinationGRO, GSO, TSO and scatter-gather all off

A wider Internet slowdown complicated the late-night comparisons. The next day’s working configuration was more useful than trying to explain every result from that outage.

This identified a configuration-dependent problem. It didn’t prove that each disabled feature had its own independent defect, or resolve every wired-to-wireless LAN result.

The working settings needed a persistent home

networkctl showed that Netplan-generated configuration under systemd-networkd owned the interface. The persistence repair used a small boot-time systemd oneshot service to apply the four-feature workaround with ethtool.

That kept the repair separate from generated network files and didn’t require restarting networking during the SSH session. It is a boot-time application, not a continuous policy that automatically reapplies after every possible interface reset. I don’t have a witnessed reboot test to add to this account.

The Internet bottleneck was fixed. I still had the slower LAN result to explain.

AA

Written by Ashlynn Antrobus

Software developer, author, and builder. Sharing technical lessons learned from building tools like Ebook2Text, IndexedDict, and rag-mcp, and navigating life as a programmer with dyslexia.