Skip to content
Contents
GuidesOpenWrt

Find packet drops in an x86 OpenWrt queue or network adapter ring

txqueuelen and the driver's RX/TX ring reside at different layers.

txqueuelen and the driver's RX/TX ring reside at different layers. Before deciding which one to use, first read ip -s link, tc -s qdisc, ethtool -g eth1, and ethtool -S eth1 on the actual network interface. Replace the example interface with the one passed through during the stress test.

Only by seeing the increment do you know which level it is

Take a snapshot when idle, then another after running for a fixed duration. When RX no-buffer or missed packets increase, first check the receive queue, queue count, and CPU usage. If qdisc drops or backlog grows, first verify traffic shaping, output interface, and link rate. Statistic names may differ across drivers; refer to the corresponding driver documentation for details.

Monitor ring errors and qdisc backlog simultaneously

Record the network card ethtool -S, ring configuration, and tc -s qdisc under fixed small packet or large traffic loads. After modifying only the receive ring, retest under the same load conditions.

When driver support is available, gradually compare the original and new values using ethtool -G. Keep track of PPS, CPU usage, and p95 RTT for each round. Larger queues may reduce short-term packet drops but could also increase data accumulation. When optimizing for low latency, measure both values and retain the original settings in your test records.

When packet loss decreases but queue delay increases, prioritize based on business requirements. If packet loss is caused by the qdisc, first investigate rate limiting or queue configuration.

Check the lab NIC driver and whether it exposes ring parameters. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Check the lab NIC driver and whether it exposes ring parameters. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the lab NIC driver and whether it exposes ring parameters. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments