Skip to content
Contents
GuidesOpenWrt

How to record a router benchmark: frame size, traffic path and raw results

A usable router comparison chart should enable readers to identify a configuration closely matching their own and trace the corresponding cabling setup and original output results. Only specifications such as chip set, memory, and maximum Mbps fail to address whether performance remains acceptable when VPN, traffic shaping, or always-on services are enabled. When creating the table, first fix device identity, traffic path, and scenario, then fill in the results; this article provides only the recording methodology, and no actual device test results are included.

A usable router comparison chart should enable readers to identify a configuration closely matching their own and trace the corresponding cabling setup and original output results. Only specifications such as chip set, memory, and maximum Mbps fail to address whether performance remains acceptable when VPN, traffic shaping, or always-on services are enabled. When creating the table, first fix device identity, traffic path, and scenario, then fill in the results; this article provides only the recording methodology, and no actual device test results are included.

Split a large table into three related smaller tables

Device information typically remains unchanged and can be reused across test scenarios, but the results of each run must be retained separately. By linking three tables using device ID, scenario ID, and run ID, old conditions can be avoided from being carried over to new results during copy-paste operations.

Table What should be recorded at minimum? Why can't it be omitted?
Device Table Brand, complete model number, revision, SoC, memory, storage, network interface cards, port topology, power supply and cooling Same chip does not imply same device; hardware changes require traceability.
Scenario Table Firmware, kernel, driver, configuration versions, cabling, protocols, packet length, direction, flow count, rules, and plugins Explain which question this set of results answers.
Operation Table Time, tool version, preheat and duration, result, exceptions, original file reference Retain repeated measurements and failures; do not keep only the best result.

Device and software identifiers must use verifiable, complete values. Third-party firmware, self-compiled builds, and officially released versions shall be listed separately; it is not acceptable to simply state "Latest OpenWrt". The configuration summary must provide sufficient information to verify relevant rules; prior to public release, passwords, keys, and real user addresses must be removed, and a statement must indicate which sensitive fields have been excluded, while retaining the corresponding internal controlled mappings.

First, confirm which path the horizontal evaluation is targeting.

Draw out "Endpoint A → Test Device → Endpoint B", labeling the ingress, egress, network segment, and gateway. When testing Layer 3 forwarding, verify that traffic actually passes through routing; for testing switching, VPN, or local application behavior, establish separate test scenarios. The router itself should run iperf and communicate with the two endpoints via the router, and these should be placed in different groups.

iperf3 official documentation Specifies the client, server, and meanings of each parameter, and reminds that the manual for the installed version should be followed. When using it, preserve the output, direction, and version from both ends. Only a single speed screenshot is retained, which is insufficient to distinguish between send results, receive results, and the inherent limitations of the test endpoint.

Endpoint capabilities also constitute evidence. Endpoint mapping can first be established under compatible link conditions, recording NIC, CPU, negotiation status, and tool capabilities; direct connectivity results can only serve as reference for this mapping and cannot automatically prove the absence of endpoint bottlenecks under all packet lengths and all flow counts. When test loads are insufficient to generate required traffic, it should be explicitly stated as "endpoint-limited; upper bound of the under-tested device not yet observed."

The metric column should include both the unit and the measurement position.

Indicators Suggested column names and definitions Common Misunderstandings
Packet rate Send PPS, receive PPS, with count position and valid time window Treat the request send rate as the successful receive rate
Throughput Receive payload rate in Mbps; line rate listed separately and overhead specified accordingly. Mix application throughput with all bits used on the line
packet loss Lost packets, total packets and loss ratio, with the tool and protocol used Directly treat the difference in counts across layers as device packet loss
latency Results under no-load and load conditions, including probe paths, statistics, and sample numbers Mix the mean, maximum, and a certain quantile.
Resources Per-core CPU, soft interrupts, queues, temperature, and frequency Use overall average CPU to exclude single-core or queue limitations
Power consumption Whole machine socket power consumption W, including measurement range and instrument used Use processor TDP instead of overall system power consumption

For a 64B test, state whether the length describes an Ethernet frame, an IP packet or an application payload. Specify whether it includes the FCS and VLAN tags and how you account for the preamble and interframe gap in wire time. The iperf3 TCP read/write buffer size does not specify an on-wire frame size. The UDP length does not include a complete Ethernet frame either. Group results with different size definitions separately.

Interface statistics also exhibit positional differences.Linux Network Statistics Documentation Distinguish the count defined at the standard interface, protocol, and driver levels. Record field names along with their corresponding interfaces; this is more reliable than merely copying a single metric like "packet loss count." When counts do not match, first verify the statistical layer, direction, background traffic, and offload impact, then determine what has occurred.

Can both test computers sustain the target rate?

Connect A and B directly or through a switch with known headroom. Repeat through the router with the same NICs, direction, MTU, IP family, stream count, length, duration and tool versions. Record negotiated speed and duplex on both ends. A drop from 10 to 2.5 Gbit/s at negotiation changes the comparison.

On Linux use ip -br link to identify the test interface. Replace eth0 below. Read errors, drops and driver queue counters before and after each run. With sysstat, watch individual cores using mpstat -P ALL 1. Record process load, received bytes and time, plus UDP loss and jitter.

dev=eth0
ip -s link show dev "$dev"
ethtool "$dev"
ethtool -S "$dev"

lan43 · rx_packets 20 → 23

In an isolated OpenWrt 25.12.6 guest, three probes raised rx_packets from 20 to 23. rx_errors and rx_dropped stayed at zero. Mark unavailable virtual NIC statistics as unknown. If the direct run falls short, reduce the rate or swap one endpoint and reverse direction. If only the routed run slows down, check negotiation and path before inspecting router cores. Restore addresses and stop listeners afterwards.

Why does changing UDP datagram length change an iperf3 result?

The plugin matrix needs to record "what was done"

Set up a basic forwarding scenario, then add rules, SQM, VPN, DNS services, or other applications according to your actual requirements. Modify one clear set of conditions per line, while preserving the base scenario as a reference. For combined loads, list them on a separate line—do not sum the individual performance results to predict the overall performance when all features are enabled.

Scenario type Must-supplied conditions Business check before result acceptance
Base forwarding Router or NAT, IPv4/IPv6, encapsulation, offload status Data from both ends indeed passes through the target path
Rules and Queues Rule content, classification conditions, target interface, traffic shaping settings The actual business flow entering rules or queues needs to be handled.
VPN Protocols, implementations, parameters, endpoint roles The target business within the tunnel is established, and the path meets expectations.
Local Machine Services Frontend and backend versions, dataset or rule set, working mode The service completes its intended functionality; it is not sufficient to verify only that the process exists.
Combined load Which tasks can run concurrently, startup conditions, and observation window Each service is effective and records mutual impacts

List software offload and hardware offload separately, and document evidence of the tested connections. Linux flowtable document Describes the differences between two types of paths. A drop in CPU usage or the mere enabling of a switch is insufficient to mark this row as hardware offload in actual testing. When hit evidence is missing, retain the configuration value and set the "actual path confirmation" column to pending.

Retain the result of each run, so readers can verify the conclusions.

Each run shall establish an independent directory to store the conditions checklist, output from both ends, relevant counters, monitoring records, and exception notes. The file name shall include the run number; the checklist record file shall contain the checksum and tool version. Charts must allow traceability to the run number. Both manually curated CSV and original outputs shall be retained; when data corrections are made, the rationale for the correction shall be clearly documented, and original files shall not be overwritten.

Before starting, fix the preheating, duration, number of repetitions, and stopping criteria. Report the distribution or range of repeated measurements, explain whether anomalous runs are included, and do not silently exclude poor results.RFC 2544 Methods and reporting elements for understanding network device baselines; citing them does not imply that a set of iPerf outputs completes all measurements required by the specification. Experiments involving stepwise stress testing and identifying experiments with no packet loss ceiling should be conducted in isolated environments, conforming to RFC 6815 Description of the scope of application.

When encountering missing values, use null along with a reason, e.g., "not tested," "endpoint limitation," "tool unable to provide the metric." For features not supported in a particular version, provide evidence and scope. Do not fill unknown or unmeasured items with zero; if no data is available, state "not supported." Use separate fields for vendor specifications, third-party records, and internal measurements, and do not share the "real test" label across sources.

Before posting a review, verify if a single line can answer a question

Randomly select a row of results to confirm whether the device revision, configuration, cabling, original output, and the targeted business under verification can be recovered. If conditions can be verified but endpoint constraints exist, issue a limited conclusion. If path or metering methodology is missing, gather evidence first and temporarily exclude from ranking. If the source contains only manufacturer parameters, place them in the specification section and do not include in the performance results section.

Finally, make a choice based on your specific use case: first evaluate whether the business requirements are met, then verify whether packet loss and load latency meet predefined thresholds, followed by comparing throughput, power consumption, and maintenance conditions. The absence of a universally applicable scoring system does not hinder a single table from helping readers make a clear and informed decision.

Measure router device capacity with packets per second and connection counts

How do you compare forwarding on MT7621, MT7986B and MT7688AN?

SoC Example board What to check first
MT7621DAT Cudy WR2100 The WR2100 has five gigabit ports. Place two wired hosts in different subnets, route traffic through the device and examine flow-offload counters and per-core load. Switching within one LAN does not measure NAT.
MT7986B TP-Link Archer AX80 EU v1 The Archer AX80 EU v1 has one 2.5G port and four gigabit ports. A second endpoint negotiating 1G already limits one flow. Record both link rates before comparing software forwarding with identical firewall and SQM settings.
MT7688AN Onion Omega2 The Omega2 has one Fast Ethernet interface. Identify whether the path is a local service, Wi-Fi to Ethernet or single-arm routing. An iPerf server running on this board does not measure forwarding between two wired hosts.

Record the board, firmware, available memory and CPU load. Enable only the plugin you need and recheck latency, loss and MemAvailable. Port specifications cannot establish a PPE hit. Leave unobserved hardware state and unmeasured throughput blank.

ubus call system board
grep -E '^(MemTotal|MemAvailable):' /proc/meminfo
ip -s link

Board and port data · Linux flowtable · Two-endpoint testing

Fast downloads, slow page loads?

On one wired computer, replace the URL with a small static file on your server that needs no login or redirect. Run the command several times, first at idle and then during an upload. Compare HTTP 200 responses from the same IP. Count timeouts separately. A zero for an unfinished stage is missing data.

fmt='status=%{http_code} ip=%{remote_ip} dns=%{time_namelookup} tcp=%{time_connect} tls=%{time_appconnect} first=%{time_starttransfer} total=%{time_total}\n'
curl -q --http1.1 -sS -o /dev/null --max-time 15 -w "$fmt" https://example.org/small.txt

curl HTTPS

Local HTTPS example. The temporary certificate is called cert. Neither request crossed a router.

Times are cumulative seconds. The first TLS handshake shown took about 7.44 ms.

0.007572 − 0.000135 = 0.007437 s

  • DNS → dns
  • TCP → tcp − dns
  • TLS → tls − tcp
  • HTTP → first − tls
  • ↓ → total − first

For slow lookups compare cold and cached results. If connections slow only during uploads, check upstream queues. For TLS check the proxy and endpoint. Waiting for the first byte includes network travel, so compare server logs. Match file sizes for the last interval.

Stop the upload and repeat. If the file is fast, inspect the last resource to finish in the browser. Connection reuse and HTTP/3 change these timings.

Test between two hosts

How much WAN bandwidth does each of two computers get?

Connect A and B to separate wired LAN ports. Put receiver C on the WAN side of an isolated test network. Test each sender alone first. Keep those baselines separate from the simultaneous result.

Run two iPerf3 server instances on C, accessible only from the lab, for example on ports 5201 and 5202. Send from A and B together, one port each. Match protocol, stream count, direction and routing settings. Align receiver logs by actual start time and use only complete overlapping intervals.

Worked example. Suppose C receives 600 MB from A and 400 MB from B in the same 10 seconds. One MB is a million bytes. Multiply combined received bytes by eight and divide by the shared duration. Each share is its fraction of received bytes.

→ C MB / 10 s Mbit/s Share
A 600 480 60 %
B 400 320 40 %
A + B 1 000 800 100 %

If total throughput holds but shares differ sharply, swap LAN ports and see whether the limit follows the host. If the total falls too, check the shared uplink, C’s NIC and per-core load. Stop both instances and remove temporary access rules.

Two-host test · ESnet iPerf3

Routing versus NAT: which address does the receiver see?

Wire A and B to separate subnets on an isolated router. Use the same IPv4 service on B, direction, MTU, flow count, SQM and offload settings. Leave production WAN NAT alone.

Route without translation first. B needs a return route to A through the router. Allow the test connection and check B’s peer address. Expect A. If nothing arrives, check both routes and the firewall.

Enable masquerading only for the test traffic. Close the old connection and start a fresh one. B should see the router’s address facing B. If A still appears, check the outgoing interface and rule match.

uci -q show firewall | grep masq
ip route show default
nft list chain inet fw4 srcnat_wan

OpenWrt 25.12.6 x86/64 · QEMU · fw4 · masquerade

The VM shows the wan zone. Find custom chains with nft list table inet fw4. A masquerade rule alone proves neither a match nor hardware acceleration.

Once verified, record received throughput and per-core load. Leave unmeasured cells blank. Restore routes and rules, reconnect and verify the peer again.

Testing with iPerf3 at both ends

Why report P95, P99 and timeouts when the mean is only 12 ms?

Run separate idle, upload-saturated and download-saturated trials. Probe the same target beyond the router from a wired client at a low rate. Fix size, interval, deadline and duration. Count only the first timely reply per sequence and log late arrivals separately.

Worked example. Of 1000 probes, 980 returned on time, averaging about 12.35 ms. Sort those RTTs and round the sample count times the percentile fraction up to a rank starting at 1.

Rank n RTT (ms)
1–930 930 10
931–970 40 40
971–980 10 120
Timeout 20 —

P95 is observation 931 at 40 ms. P99 is observation 971 at 120 ms. Report 20/1000 timeouts (2%) separately. These percentiles cover timely replies only. A timeout has no zero RTT and need not mean permanent loss.

If the tail rises only during uploads, pause them and repeat. If timeouts rise while P99 falls, check missing samples and target rate limits. Keep trials separate. Pool raw samples to compute a combined percentile. Recheck idle latency afterwards.

Diagnosing queue delay under load

Why report a lower loss-free rate than the peak?

Consider a lab example. Hold frame size, direction and forwarding settings fixed on an isolated network. Run three 60-second trials per rate. Allow frames in flight to arrive, then compare actual transmissions with unique test frames received. All three trials at 100 kfps pass. At 110 kfps one trial sends 6.6 million frames and loses 66.

That is 0.001% loss even if the display rounds to zero. Report 100 kfps as the highest tested rate with no observed loss in all three trials. Keep the failed run. Rule out drops at the endpoints before narrowing the interval. If even the top rate passes, report a lower bound. Check sustained performance separately with longer runs, temperature and latency.

Reference

Explore hardware

Devices mentioned

Comments