Verify evidence Search

Research publication Performance

Measuring VPN throughput without fooling yourself

A VPN throughput figure means something only relative to a baseline measured on the same link, to the same endpoint, at the same time, with the method declared. We set out a design — interleaved runs, fixed servers, declared iperf3 flags, latency under load, medians with spread.

  • VPNL-R-2026-002
  • Version 1.2
  • Published
  • Updated
  • 9 min read
  • 16 references

Abstract

VPN speed claims are usually single numbers from a browser-based speed test. Such numbers mix the capacity of the access link, the load on a shared VPN server, the location of an automatically selected test server, transport-protocol behaviour and chance. This publication describes how to design a throughput benchmark whose result can be interpreted and reproduced: define the question, establish a same-path baseline, fix and record the VPN server, measure to an endpoint under your control, choose TCP and UDP tests deliberately, measure latency under load alongside throughput, interleave conditions, repeat each condition often enough to see its distribution, and report medians with interquartile ranges. It also explains why best-run and mean-only figures can mislead, and what the results table of a benchmark report should contain.

What a throughput number means

Throughput, in this publication, is the rate at which application payload is delivered end to end over a test interval, in megabits per second. Strictly that is goodput: protocol headers, retransmissions and encapsulation are not counted. RFC 1242 defines the terminology used in network benchmarking [1], and RFC 9097 specifies metrics for one-way IP capacity [2].

A number measured through a VPN is bounded by the slowest element on the path: the access link, the device’s ability to encrypt and decrypt, the path to the VPN server, the server’s own capacity and current load, the path from the server to the measurement endpoint, and the endpoint itself. Changing any of these changes the result. A single number without the path, the time and the method therefore says very little — and comparing two such numbers usually compares two different paths.

Define the question first

Benchmarks answer questions, and different questions need different designs. Three common ones:

  • What does the tunnel cost on this connection? Compare the same path with and without the VPN, at the same time, to an endpoint you control. This isolates the overhead of the client, the protocol and the server.
  • Which server or protocol is fastest from here? Hold the client and the endpoint constant and vary one factor at a time.
  • What will a user typically experience? Sample many times of day and several servers, and report the distribution rather than a single figure.

The general principles of experimental design for performance work — controlling factors, randomising order, replicating runs — are set out in Jain’s textbook [3]. The IETF’s benchmarking methodology for network devices applies the same discipline to equipment under test [4].

The baseline and the path

The baseline is the same measurement without the VPN: same device, same access link, same endpoint, same tool and flags, in the same time window. Without it, a VPN result cannot be separated from the capacity of the link it ran on. RFC 6349 makes the same point for TCP testing in general: before measuring TCP throughput, establish the path’s MTU, its round-trip time and its bottleneck capacity [5].

The measurement endpoint should be a server you control, with capacity well above the rates under test, located outside the VPN provider’s network. Public test servers are shared and their load is unknown; a provider’s own test endpoint measures only the path to the provider.

Encapsulation overhead

Every tunnel adds headers. A WireGuard data packet carries an outer IP header (20 bytes for IPv4, 40 for IPv6), an 8-byte UDP header, a 16-byte WireGuard header and a 16-byte authentication tag [6]: 60 bytes of overhead over IPv4 and 80 over IPv6. A WireGuard interface therefore defaults to an MTU of 1,420 bytes, which fits inside a 1,500-byte path even with an IPv6 outer header.

As worked arithmetic from header sizes alone — a calculation, not a measurement: ignoring TCP options, a full-sized TCP segment over IPv4 carries 1,460 bytes of payload on a 1,500-byte path without a tunnel, and 1,380 bytes inside a 1,420-byte tunnel — about 5 % less payload per packet before any CPU or path effects. OpenVPN’s overhead varies with transport, cipher and configuration and should be measured rather than assumed. Path MTU problems, where oversized packets are silently dropped, can reduce throughput far more than the header cost; packetisation-layer path MTU discovery addresses them [7].

Server-selection bias

Browser-based speed tests pick a test server near the client, judged by the client’s apparent IP address. With the VPN active, the apparent address is the VPN exit, so the test picks a server near the exit — a different path from the one measured with the VPN off. The two numbers are not comparable, however carefully each was taken.

VPN servers introduce a second bias. They are shared, and their load follows the time of day; one hostname may resolve to several machines. A benchmark should fix the server, record its hostname and IP address, and, if a typical-experience figure is wanted, sample several servers at several times rather than keep the fastest. Comparing one provider’s Frankfurt server with another’s Amsterdam server compares geography as much as software. The VPN protocol matters too: OpenVPN over TCP carries TCP inside TCP, and the two control loops interact badly when packets are lost, so protocol and transport must be recorded with every result.

Tools: iperf3 and its flags

iperf3 [8] is the most widely used tool for controlled throughput tests. It runs as a server on the measurement endpoint and as a client on the device, and its results depend heavily on flags, which must therefore be published with every result.

# On the measurement endpoint (outside the VPN provider's network)
iperf3 -s

# Download direction (-R), one stream, 30 s, discard the first 3 s, JSON output
iperf3 -c perf.example.net -R -t 30 -O 3 -J > run-012-R-P1.json

# The same with four parallel streams
iperf3 -c perf.example.net -R -P 4 -t 30 -O 3 -J > run-012-R-P4.json

# UDP at a fixed offered rate: reports loss and jitter instead of capacity
iperf3 -c perf.example.net -u -b 300M -t 30 -J > run-012-U300.json

The -O (omit) option discards the first seconds, during which TCP is still ramping up. JSON output (-J) preserves per-interval data, so that stalls and drops within a run remain visible. iperf3 releases before 3.16 handle all streams in a single thread, so with many parallel streams the tool itself can become the bottleneck; record the version and watch CPU utilisation on both ends.

TCP, UDP and parallel streams

Per-flow TCP throughput depends on round-trip time and loss. The classic model by Mathis and colleagues bounds a Reno-style flow at roughly (MSS ÷ RTT) × (C ÷ √p), where p is the loss probability and C is a constant of about 1.22 [9]. As worked arithmetic (not a measurement), with a 1,380-byte MSS, a 40 ms round trip and a loss rate of 0.01 %, the bound is about 34 Mbit/s. Modern congestion-control algorithms such as CUBIC and BBR respond to loss differently, but the qualitative point stands: a VPN that adds latency or loss lowers single-flow throughput even when capacity is unchanged.

A single flow also needs a receive window at least as large as the bandwidth-delay product. At 500 Mbit/s and a 40 ms round trip, that is 20 megabits — 2.5 MB in flight. Window scaling makes this possible [10, 11], but operating-system limits can still cap a single stream. Parallel streams (-P) work around per-flow limits and approach the path capacity; a single stream is closer to one large download. The two answer different questions, so we report both.

UDP tests at a fixed offered rate (-u -b) do not measure capacity directly. They show at which rate loss begins, and report jitter — variation in packet delay, defined for IP performance measurement in RFC 3393 [12]. They are the right tool for questions about real-time traffic carried inside the tunnel.

Latency under load

Latency measured on an idle link — a few pings before the test — says little about responsiveness during a download. When a link is saturated, packets queue in buffers along the path, and round-trip time can rise by tens or hundreds of milliseconds. This queueing delay, the subject of the IETF’s recommendations on active queue management [13], is what users notice as lag in calls and games while something else is downloading.

We measure round-trip time continuously while the throughput test runs, using the round-trip delay metric defined in RFC 2681 [14], and report idle and loaded medians side by side. Flent’s Realtime Response Under Load test automates this pattern by combining bulk flows with concurrent latency probes [15]. A VPN server with deep buffers can show respectable throughput and poor loaded latency at the same time — a result a throughput-only report would hide.

Repetitions, medians and spread

Throughput varies from run to run. Ten runs per condition is a practical minimum for a median and quartiles to mean anything. Runs should be interleaved — baseline, tunnel, baseline, tunnel — or ordered randomly, so that slow drifts in background traffic affect both conditions equally rather than masquerading as a difference between them.

The median and the interquartile range (the span between the first and third quartiles) describe a set of runs robustly; the NIST/SEMATECH e-Handbook explains why such order statistics resist outliers in a way the mean does not [16]. Quartiles should be computed by linear interpolation between closest ranks (R type 7, spreadsheet PERCENTILE.INC), as in our performance methodology, and the method should be stated, because other quartile definitions give slightly different ranges for the same small set of runs.

Table 1 — What the results table of a throughput benchmark report contains (one row per combination of condition, direction and stream count)
ColumnContentUnit
ConditionBaseline without the VPN, or tunnel with protocol, transport and server hostname—
Direction and streamsDownload (-R) or upload; number of parallel TCP streams (-P), or UDP at a stated offered rate—
Runs (n)Number of valid runs, plus any excluded runs with the documented reason for eachcount
MedianMiddle value of the per-run throughputsMbit/s
Interquartile rangeFirst to third quartile of the per-run throughputsMbit/s
Ratio to baselineTunnel median divided by the baseline median from the same interleaved session%
LatencyMedian round-trip time on the idle link and while the test runsms
Raw dataPer-run output files and their SHA-256 hashes—

The individual runs belong in an appendix or in the raw files, listed in run order with their start times, so that a reader can see drift across the session and recompute every summary. A dot plot of the runs for each condition, with the median and interquartile range marked, shows the shape of the distribution at a glance and should accompany the summary table.

Why not report the best run or the mean? The best run captures the most favourable moment on a shared server and overstates what the tunnel delivers. The mean is pulled down by a few slow runs and blurs two different situations into one number. Neither shows how the runs are distributed. If most runs cluster tightly and a few form a separate slow group, the distribution is bimodal, which points to an intermittent cause such as a busy server, a path change or CPU throttling. The correct response is to investigate and report it, never to delete the slow runs as outliers without a documented reason.

A reporting checklist

A throughput result should be published with enough context for someone else to repeat it:

  1. The question and the conditions compared.
  2. Date, time window and time zone of the runs.
  3. Access-link type and nominal rate, and the client’s location.
  4. Device, operating-system build and CPU; VPN client version, protocol, transport, cipher and tunnel MTU.
  5. VPN server hostname, IP address and location, and whether it was fixed for all runs.
  6. Location and network of the measurement endpoint.
  7. Tool, version and full command lines, including warm-up omission and duration.
  8. Number of runs per condition and their order.
  9. Median and interquartile range for each direction, and the ratio to baseline.
  10. Idle and loaded latency.
  11. Raw output files, with their SHA-256 hashes.

This is the structure our performance methodology applies to benchmark records, and the raw files are handled as evidence like any other.

Limitations

A carefully designed benchmark still measures one path at one time. Results do not transfer to other locations, access technologies or servers, and a provider’s network can change from one week to the next. Throughput is also only one dimension of a VPN’s quality; a fast tunnel that leaks traffic is not a good tunnel. This publication reports no measurements: its arithmetic follows from protocol header sizes and published models, and it describes no product or service.

References

All sources are publicly available primary documents. Numbers correspond to the bracketed citations in the text.

  1. 1Bradner, S. (1991). Benchmarking Terminology for Network Interconnection Devices (RFC 1242). RFC Editor. https://www.rfc-editor.org/rfc/rfc1242
  2. 2Morton, A., Geib, R., & Ciavattone, L. (2021). Metrics and Methods for One-Way IP Capacity (RFC 9097). RFC Editor. https://www.rfc-editor.org/rfc/rfc9097
  3. 3Jain, R. (1991). The Art of Computer Systems Performance Analysis: Techniques for Experimental Design, Measurement, Simulation, and Modeling. Wiley.
  4. 4Bradner, S., & McQuaid, J. (1999). Benchmarking Methodology for Network Interconnect Devices (RFC 2544). RFC Editor. https://www.rfc-editor.org/rfc/rfc2544
  5. 5Constantine, B., Forget, G., Geib, R., & Schrage, R. (2011). Framework for TCP Throughput Testing (RFC 6349). RFC Editor. https://www.rfc-editor.org/rfc/rfc6349
  6. 6Donenfeld, J. A. (2017). WireGuard: Next Generation Kernel Network Tunnel. In Proceedings of the Network and Distributed System Security Symposium (NDSS 2017). Internet Society. https://doi.org/10.14722/ndss.2017.23160 https://www.wireguard.com/papers/wireguard.pdf
  7. 7Mathis, M., & Heffner, J. (2007). Packetization Layer Path MTU Discovery (RFC 4821). RFC Editor. https://www.rfc-editor.org/rfc/rfc4821
  8. 8ESnet. (n.d.). iperf3 documentation. Energy Sciences Network, Lawrence Berkeley National Laboratory. https://software.es.net/iperf/
  9. 9Mathis, M., Semke, J., Mahdavi, J., & Ott, T. (1997). The macroscopic behavior of the TCP congestion avoidance algorithm. In ACM SIGCOMM Computer Communication Review, 27(3).
  10. 10Borman, D., Braden, B., Jacobson, V., & Scheffenegger, R. (Ed.). (2014). TCP Extensions for High Performance (RFC 7323). RFC Editor. https://www.rfc-editor.org/rfc/rfc7323
  11. 11Eddy, W. (Ed.). (2022). Transmission Control Protocol (TCP) (RFC 9293). RFC Editor. https://www.rfc-editor.org/rfc/rfc9293
  12. 12Demichelis, C., & Chimento, P. (2002). IP Packet Delay Variation Metric for IP Performance Metrics (IPPM) (RFC 3393). RFC Editor. https://www.rfc-editor.org/rfc/rfc3393
  13. 13Baker, F. (Ed.), & Fairhurst, G. (Ed.). (2015). IETF Recommendations Regarding Active Queue Management (RFC 7567). RFC Editor. https://www.rfc-editor.org/rfc/rfc7567
  14. 14Almes, G., Kalidindi, S., & Zekauskas, M. (1999). A Round-trip Delay Metric for IPPM (RFC 2681). RFC Editor. https://www.rfc-editor.org/rfc/rfc2681
  15. 15The Flent project. (n.d.). Flent: The FLExible Network Tester. https://flent.org/
  16. 16NIST/SEMATECH. (n.d.). e-Handbook of Statistical Methods. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/

Cite this publication

APA style

VPN Network Research Labs. (2026, July 7). Measuring VPN throughput without fooling yourself (Research Publication No. VPNL-R-2026-002, Version 1.2). https://vpn.com.de/research/measuring-vpn-throughput

BibTeX

@techreport{vpnl-r-2026-002,
  author      = {{VPN Network Research Labs}},
  title       = {{Measuring VPN throughput without fooling yourself}},
  institution = {VPN Network Research Labs},
  type        = {Research Publication},
  number      = {VPNL-R-2026-002},
  year        = {2026},
  month       = jul,
  date        = {2026-07-07},
  version     = {1.2},
  url         = {https://vpn.com.de/research/measuring-vpn-throughput},
  langid      = {en},
  note        = {Version 1.2, updated 2026-11-17}
}

Cite the document ID and the version you read. Document IDs are permanent; substantive changes receive a new version number and an entry in the revision history below.

Revision history

Revision history of VPNL-R-2026-002
VersionDateChange
1.2 Replaced the worked example of run-level data (former Tables 2 and 3 and Figure 1) with a description of how a benchmark report tabulates and summarises its runs.
1.1 Corrected the quartile method to linear interpolation between closest ranks (R type 7), as specified in the performance methodology. The interquartile ranges in Table 3 and Figure 1 changed accordingly; medians, means and conclusions are unchanged.
1.0 Initial publication.

Found an error? Write to support@vpn.com.de. Corrections are handled under our corrections and retractions policy and are never applied silently.

Methodology and definitions

Terms used in this publication

Test records

This publication contains no results about specific products. Product tests, audits and their evidence are published in the Report Registry and the Evidence Database.