Why packet captures, interface counters and iperf3 bytes differ
For a test between two endpoints across a router, record the observation point for every result. Application bytes at the receiver, RX packets on an interface and TCP segments in a local capture are counted at different points. Dividing these columns does not give the average frame length on the wire.
Transmit captures can precede segmentation and checksum insertion, while GRO can combine several segments on receive. When a capture shows a segment larger than the MTU or a checksum warning, compare it with a simultaneous capture at the receiver or switch mirror port. On a spare device, vary one offload setting at a time. Record its initial value, both captures and the application result, then restore it.
On the router, replace eth0 with the forwarding interface. Read its counters before and after the test, compare the changes in the same direction and record any other traffic during the interval. Use ethtool to read receive aggregation and transmit segmentation settings. For a bridge, also identify its lower port. Do not add both observations of the same traffic.
for counter in rx_packets rx_bytes rx_errors rx_dropped; do
echo "$counter $(cat /sys/class/net/eth0/statistics/$counter)"
done
ethtool -k eth0 | grep -E 'generic-(receive|segmentation)-offload'

Record the direction, interval and received bytes from iperf3 at the receiving endpoint. TCP retransmissions, headers, unrelated traffic and segmentation can all cause differences. If application bytes look right and large segments appear only in a local capture, check the capture point at the other end. If both endpoints show loss, inspect interface errors and queue drops. For on-wire frame counts, use an instrument that observes the link. State the framing and gap assumptions when converting counts to bandwidth. The guest screenshot contains no performance result.
Measure 2.5 GbE throughput with an iperf3 endpoint on each side
Comments