Where Your VPS Egress Cap Actually Is: Port Speed vs Burst Credit vs Sustained Throughput

A VPS advertised as “1 Gbps” rarely delivers 1000 Mbit of sustained egress. On most providers that number describes the port, not your allowance, and the published monthly transfer quota is enforced somewhere between the guest NIC and the internet. The enforcement point determines what you can measure from inside the VM, and the honest answer is often: not much of it. This is a practical method for finding where the cap sits, how it is applied, and how to get a defensible number for the throughput you are actually paying for – before you migrate a workload that depends on it.

Port Speed, Burst Credit and Sustained Allowance Are Three Different Things

ethtool eth0 inside a virtio guest reports a configured link speed, but the value is what the driver was told, not a hardware negotiation. A guest can show Speed: 10000Mb/s on a host that will throttle it to 100 Mbit once a monthly counter passes a threshold. Treat that line as decoration.

What matters is the traffic policy, and there are four common shapes:

  • Rate shaped, always. Traffic is policed to a fixed rate, usually by a token bucket on the host vSwitch. Exceeding the rate means dropped packets, not queuing – latency stays healthy, throughput plateaus.
  • Rate limited, always. Same ceiling, but excess traffic is queued rather than dropped. Throughput plateaus and latency or bufferbloat rises with offered load.
  • Metered. No live limit; you are billed or suspended after a monthly quota. This is invisible from inside the guest and only shows up on an invoice.
  • Burst then shape. A bandwidth credit accumulates while idle and allows short multi-gigabit bursts, then drops to a low sustained rate. The most misleading in benchmarks, because a 30-second test measures the burst.

Almost every “why is my bandwidth so low on speedtest” thread is somebody measuring a burst then reading a monthly average, or the reverse.

Set Up: Reference Host, Known Path, Fixed Duration

You cannot measure egress without a receiver you trust. Use a host on a different network with a known-good multi-gigabit uplink, ideally on a different transit provider, and record its own iperf3 capability first. A receiver capped at 200 Mbit will tell you your VPS does 200 Mbit.

# on the reference host
iperf3 -s -p 5201

# on the VPS - pure egress, single stream, 60 s
iperf3 -c ref.example.net -p 5201 -t 60 -O 5 --json > egress-1s.json

# 8 parallel streams, reveals per-flow vs aggregate shaping
iperf3 -c ref.example.net -p 5201 -t 60 -O 5 -P 8 --json > egress-8p.json

# reverse direction for comparison (ingress)
iperf3 -c ref.example.net -p 5201 -t 60 -O 5 -R

-O 5 discards the first five seconds so TCP slow start does not pollute the average. That flag alone fixes the most common measurement error. Parse the JSON instead of reading the summary line; the per-interval series is what tells you whether the rate was flat or decaying:

jq -r '.intervals[].sum.bits_per_second' egress-1s.json | awk '{printf "%4.0f Mbit\n", $1/1e6}'
jq '.end.sum_sent.bits_per_second/1e6' egress-1s.json

Reading the Shape of the Plateau

The aggregate number is the least interesting part. The interval series identifies the enforcement mechanism, and each mechanism has a recognisable fingerprint:

ObservationLikely cause
Flat at a round number (100, 200, 500 Mbit) for the whole runHard rate shape; the round number is the plan tier
High first 10-20 s, then a step down to a stable lower rateBurst credit exhausted; the lower rate is your real allowance
Single flow ~1/8 of 8-flow aggregatePer-flow shaping or a per-VM queue with one TX queue
Aggregate same for 1 and 8 flowsAggregate cap; more streams will never help
Ramp up, then sawtooth of +/- 20%Token bucket refill with a shared host competing for the same cap
Never reaches 50% of plan, retransmits presentNot a bandwidth limit – loss, MTU, or a congested path

That last row is the one people misdiagnose. If iperf3 reports retransmissions in the JSON (.end.sum_sent.retransmits) or ss -ti shows high retrans and cwnd collapse, you have a loss problem and no amount of extra bandwidth will fix it.

ss -ti dst ref.example.net
# look for: retrans, cwnd, ssthresh, rtt
tc -s qdisc show dev eth0     # guest-side drops, should be near zero

Measure the Burst Budget Deliberately

If the provider sells “burst bandwidth”, the useful number is not peak rate but the credit size: how many megabytes can you move at burst speed before throttling. Measure it by idling for a few minutes, then running a single long transfer and logging throughput every second to a file:

sleep 300
iperf3 -c ref.example.net -t 120 --json > burst.json
jq -r '.intervals[] | "\(.sum.start) \(.sum.bits_per_second/1e6)"' burst.json

# bytes moved before the step-down = credit
jq -r '.intervals[] | select(.sum.bits_per_second/1e6 > 700) | .sum.bytes' burst.json \
  | awk '{s+=$1} END{printf "%.0f MB at burst\n", s/1e6}'

That total is the credit. If it is 2 GB, you can push a 2 GB nightly backup at full speed and nothing more. If it is 200 MB, burst is marketing for upgrades and your sustained figure is the one that matters.

Confirming the Cap Is Outside the Guest

Before blaming the provider, exclude your own stack. The guest should show no qdisc drops, no elevated softirq, and a single TX queue that is not saturated. If mpstat shows one core pinned in %soft during a 1 Gbit transfer, your limiting factor is the NIC queue, not the network.

tc -s qdisc show dev eth0            # drops/overlimits
ethtool -S eth0 2>/dev/null | grep -i drop
ls /sys/class/net/eth0/queues/       # tx-* count
mpstat -P ALL 1 10                   # %soft per core during transfer

For a decisive test, run the same transfer twice: once as a direct iperf3 between guest and reference, and once through a five-year-old laptop on a consumer line as a control. If a home connection reaches the same ceiling, the cap is upstream. If the VPS reaches a flat round number while the home line does not, the cap is the provider’s policy, and it is exactly what you purchased.

Turning the Measurement Into a Buying Decision

Work out your requirement from the workload, not from the plan name. A site serving 50 GB a month never needs more than a few Mbit sustained. A nightly backup of 200 GB in a four-hour window needs about 110 Mbit sustained with no burst, which many mid-tier plans will not hold for four hours. Record three numbers per candidate: sustained single-stream rate, sustained 8-stream aggregate, and burst credit in MB. Those three predict real behaviour; the headline speed does not.

Re-run the test at the end of a billing period, not the start. Metered plans behave identically all month; shaped plans often tighten once a soft threshold is crossed, and the last-week number is the one your backup job will actually see.

Once you have the three numbers, the buying decision is mostly a matter of reading the spec sheet correctly. The main site lists port speed and transfer allowances per plan, and the managed vs unmanaged breakdown covers what you own when a transfer cap turns out to be the bottleneck rather than the application.

Leave a Reply