Industry Insights
Reading packet error rate at installation: a 20-minute test
1,200 packets in 20 minutes cannot resolve a 1% error rate. What the sample size really buys, and the four numbers to log at commissioning.
A commissioning visit usually ends with a laptop, a serial log and one number written into the handover sheet: PER 0.8%, link acceptable. The number is not wrong. It is almost always computed from fewer packets than the person signing the sheet assumes, and it never arrives with an interval, a payload length or a direction attached. Two sites measured the same way can read 0.8% and 1.2% and be statistically identical, while a third that reads 0.3% can be the one that fails in the rainy season.
This page is the arithmetic behind that number, not another commissioning checklist. The question it answers is narrow and practical: in the twenty minutes you actually have on site, with the payload your application really sends, what can a packet error rate measurement prove, and what is it silently unable to prove? The answer changes the test design before anyone climbs the pole.
A packet error rate is a ratio, and every part of it matters
PER is the number of frames that fail their CRC divided by the number of frames transmitted, over a stated interval. Four things have to be fixed before the number means anything, and all four are usually left out of the handover sheet:
- Payload length. A CRC covers the whole frame. A longer frame is likelier to contain a bit error.
- Symbol rate. 2.4 kbps and 76.8 kbps have different sensitivity, different airtime and different exposure to impulse noise.
- Direction. The uplink from a battery node and the downlink from a mains-powered gateway rarely have the same budget.
- Retries. A MAC layer that retransmits twice hides the raw error rate. Either disable it for the test or log both the raw and the delivered figure.
The payload point alone explains most of the disagreement between two people quoting "the same link". If the bit error rate is fixed, the frame error rate follows directly from the length:
Payload | Bits on air | PER at BER 1×10⁻⁴ | PER at BER 3×10⁻⁴ | PER at BER 1×10⁻³ |
|---|---|---|---|---|
20 B | 160 | 1.6% | 4.7% | 14.8% |
40 B | 320 | 3.2% | 9.2% | 27.4% |
60 B | 480 | 4.7% | 13.4% | 38.1% |
120 B | 960 | 9.2% | 25.0% | 61.7% |
240 B | 1,920 | 17.5% | 43.8% | 85.4% |
Computed as 1 − (1 − BER)^n with n = 8 × payload bytes; framing bits, FEC and preamble are excluded, so real figures are slightly worse.
Read the 1×10⁻⁴ row across: the same radio, the same distance, the same antenna reads 1.6% for a 20-byte meter reading and 9.2% for a 120-byte block. Neither number is a lie, and quoting either without the byte count is. This is why a "1% PER" claim in a datasheet is not comparable across vendors unless the frame length and rate are stated with it.
Twenty minutes buys about 1,200 samples, and that is the whole budget
Now the part that decides the test design. A PER measurement is a binomial experiment: N frames, k failures, and an estimate k/N with an interval around it. With zero failures the interval is one-sided, and the useful bound is the rule of three — zero failures in N trials puts the 95% upper limit at roughly 3/N.
Frames sent | If 0 fail, 95% upper bound | If 1% fail, 95% interval |
|---|---|---|
100 | 3.0% | 0.2% – 5.4% |
300 | 1.0% | 0.3% – 2.9% |
600 | 0.5% | 0.5% – 2.2% |
1,200 | 0.25% | 0.6% – 1.7% |
2,400 | 0.12% | 0.7% – 1.5% |
Wilson score intervals at 95%, the method recommended for small proportions; see the [NIST/SEMATECH handbook](https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm). The 1,200-row interval corresponds to an observed 12 failures.
The practical reading: zero failures in 300 frames proves the link is better than 1%, and that is the cheapest credible statement a commissioning test can make — five minutes at a one-second poll. It is also the only statement that gets stronger quickly. Everything else needs far more traffic than a site visit allows.
Suppose you want to compare two antenna positions, or the same site before and after raising a mast. You are no longer estimating one proportion, you are trying to resolve a difference between two. At 80% power and a two-sided 5% test, separating 1% from 2% needs roughly 2,315 frames per arm:
Difference to resolve | Frames per arm | Total frames |
|---|---|---|
5% vs 1% | 282 | 564 |
3% vs 1% | 765 | 1,530 |
2% vs 1% | 2,315 | 4,630 |
1% vs 0.5% | 4,670 | 9,340 |

That single table is the reason most "we improved the antenna" reports are noise. At a one-second poll, twenty minutes gives 1,200 frames per arm — enough to separate 3% from 1%, not enough to separate 2% from 1%. At a quarter-second poll the same twenty minutes gives 4,800, which is. The poll interval you choose before the visit decides which question the visit can answer. Changing it afterwards does not rescue the data; it only changes which comparison you are allowed to claim.
A clean run is not evidence
There is a second trap, and it catches experienced people. Watching a link run error-free for three minutes feels like a result. It is not, because at a true PER of 1% a run of 100 consecutive clean frames happens 37% of the time by chance alone:
Error-free run | At true PER 1% | At 2% | At 5% |
|---|---|---|---|
30 frames | 74.0% | 54.6% | 21.5% |
60 frames | 54.7% | 29.8% | 4.6% |
100 frames | 36.6% | 13.3% | 0.6% |
300 frames | 4.9% | 0.23% | 0.0002% |

A three-minute clean run at a one-second poll is 180 frames, and at 1% PER it is expected roughly one time in six. So "we watched it for a few minutes and it was fine" is fully compatible with a link that will drop one frame in a hundred for the next five years. The test that does mean something is a counted one: 300 frames with zero errors, which is a 95% claim that PER is under 1.3%, or 1,200 frames with the failures counted, which gives an interval rather than a feeling.
The hardware fixes how many frames you get
Sample count is not free. Every frame costs airtime, and airtime at 2.4 kbps is expensive. On the two ends of a TPUNB link:
Parameter | TP5500 terminal DTU | TP2208 gateway |
|---|---|---|
Operating band | 470–510 MHz | 470–490 MHz |
Transmit power | 26 ± 1 dBm | 17 dBm, configurable |
Receiver sensitivity | −116 dBm at 19.2 kbps | −122 dBm (datasheet figure, rate not stated) |
Symbol rate | 2.4 / 19.2 / 76.8 kbps | 2.4 kbps uplink, 19.2 kbps downlink, or 76.8 / 76.8 |
Channels | 1 | 2, configurable |
Duplex | — | TDD, ACK/NACK feedback |
Channel coding | — | TBCC 1/2, 4/5 |
Power | ≤1 W | ≤6 W, ≈2.5 W average |
Enclosure | IP65, outdoor | IP50, indoor |
A 60-byte payload with 12 bytes of framing occupies 240 ms at 2.4 kbps, 30 ms at 19.2 kbps and 7.5 ms at 76.8 kbps. Multiply by the sample count and the test starts to have a cost of its own:
Rate | Airtime per 60 B frame | 1,200 frames | Share of a 20-minute window |
|---|---|---|---|
2.4 kbps | 240 ms | 288 s | 24% |
19.2 kbps | 30 ms | 36 s | 3.0% |
76.8 kbps | 7.5 ms | 9 s | 0.75% |
The 2.4 kbps column is the one to look at twice. A twenty-minute test at that rate occupies a quarter of the channel, and European short-range rules express exactly this constraint as a duty cycle limit — 0.1%, 1% or 10% depending on the band, per ETSI EN 300 220-2. A test that runs at 24% duty is not a test of the compliant product; it is a test of a product that would be illegal to ship in those bands. Either run the long test at 19.2 kbps, or keep the 2.4 kbps run short and accept the wider interval.
The direction you forgot to measure
Path loss is reciprocal at a fixed frequency, so on a TDD link the only asymmetry comes from transmit power and receiver sensitivity — and there is 9 dB of transmit power difference between these two ends. Using the datasheet numbers:
- Uplink (TP5500 at 26 dBm into the TP2208 at −122 dBm): 148 dB of budget.
- Downlink (TP2208 at 17 dBm into the TP5500 at −116 dBm at 19.2 kbps): 133 dB.
That is a nominal 15 dB gap, and it is an upper bound rather than a measurement, because the gateway sensitivity is quoted without a rate and will be a few dB worse at 19.2 kbps. Even so, several dB survive, and they matter: the ACK fails before the data frame does.

The consequence for the test is concrete. If you log only the uplink CRC, a site with a marginal downlink looks perfect until you notice the node retransmitting. If you log only the delivery rate at the application, the same site looks like "bad PER" when the radio is fine and the ACK path is not. Log both directions separately, with the sequence number, and count the ACKs as frames too.
The twenty-minute procedure
The procedure below assumes one node, one gateway, a serial log and no application traffic. The free-space numbers are computed with the ITU-R P.525 formula, and the 1% reference point is the same order as the packet-loss ratios that ITU-T Y.1541 uses for its strictest IP QoS classes.
- Fix the payload to the application's real frame, including its header. Write the byte count down.
- Pin the rate at the rate the product will ship with. Do not test at 76.8 kbps and deploy at 2.4 kbps.
- Turn off application retries, or log the raw CRC failures separately from the delivered result.
- Add a sequence number to the payload and have the receiver log it. Lost frames must be visible, not inferred from a timeout.
- Log RSSI or SNR per frame where the firmware exposes it. A PER number without a level is not diagnosable.
- Run 300 frames first. If any fail, stop and fix the obvious: antenna, connector, height, interference.
- Then run 1,200 frames at the poll interval you can sustain — this is the number that gives an interval.
- Repeat at the worst node, not the nearest one. Commissioning the easy node is a common and expensive habit.
- Record the time of day and the weather. A test at 09:00 on a dry day is not a test at 17:00 with traffic on the adjacent channel.
- Write the interval into the handover sheet, not just the point estimate.
A minimal harness, assuming the node exposes a line-oriented test mode and the gateway prints what it received:
import csv, serial, time
ser = serial.Serial("/dev/ttyUSB0", 115200, timeout=2)
payload = b"M" * 56 # 56 B payload, 4 B sequence = 60 B frame
with open("per_run.csv", "w", newline="") as fh:
row = csv.writer(fh)
row.writerow(["seq", "started_ms", "acked", "rtt_ms"])
for seq in range(1200):
t0 = time.time()
ser.write(payload + seq.to_bytes(4, "big"))
line = ser.readline().decode(errors="replace").strip()
row.writerow([seq, int(t0 * 1000), int(line.endswith("ACK")),
int((time.time() - t0) * 1000)])
time.sleep(1.0) # 1 s poll: 1,200 frames in 20 minutesReading the result
Failures counted, the verdict follows from the interval, not from the point estimate. The table below is 1,200 frames — twenty minutes at a one-second poll:
Failures in 1,200 | Measured PER | 95% interval | Verdict | Action |
|---|---|---|---|---|
0 | 0.0% | 0.0% – 0.32% | Pass with margin | None |
6 | 0.50% | 0.23% – 1.09% | Pass | None, recheck in wet season |
12 | 1.00% | 0.57% – 1.74% | Borderline | Raise antenna, re-test |
18 | 1.50% | 0.95% – 2.36% | Fail for a 1% target | Fix before handover |
24 | 2.00% | 1.35% – 2.96% | Fail | Fix before handover |
60 | 5.00% | 3.90% – 6.38% | Badly failing | Site problem, not tuning |
The interval is what makes the verdict defensible. Twelve failures is 1.0%, and the honest statement is "between 0.6% and 1.7%" — which is compatible with both a passing and a failing link. Refusing to sign on a borderline number is not pedantry; it is the only way the next site's number means anything.
One example, all the way through
A 900 m run across a yard, 60-byte frames, 19.2 kbps, one-second poll, 1,200 frames sent and 9 lost:
- Measured PER 0.75%, 95% interval 0.40% – 1.42%.
- Path loss 85.0 dB at 900 m in free space at 470 MHz, before any obstruction.
- Margin 63 dB uplink and 48 dB downlink against those budgets — comfortable, which is exactly why the failures are worth reading rather than dismissing.
- Application cost: a three-fragment report has a 2.2% chance of losing at least one fragment, so roughly one report in 45 needs a retry.
- Monthly volume: one node polling every second sends 2.59 million frames a month; at 0.75% that is about 19,400 lost frames, all of them absorbed by retries that nobody will ever see.
The residual error after three retries is 10⁻⁶, which is why the link will feel fine. The cost is in latency and battery, not in data loss — and at 3% PER the same arithmetic starts to bite, because three retries at 3% still leave 2.7×10⁻⁵ and the retry traffic itself adds airtime.
Computing the interval is four lines of Python, and it is worth keeping next to the handover sheet:
import math
def ci(k, n, z=1.96):
p = k / n
d = 1 + z * z / n
c = (p + z * z / (2 * n)) / d
h = z * math.sqrt(p * (1 - p) / n + z * z / (4 * n * n)) / d
return max(0.0, c - h), min(1.0, c + h)
for k in (0, 6, 12, 18, 24, 60):
lo, hi = ci(k, 1200)
print(f"{k:3d}/1200 {k/1200:6.2%} 95% CI {lo:6.2%} – {hi:6.2%}")Failure modes that look like a bad radio
A high PER at commissioning is more often a site problem than a radio problem, and three of the usual causes produce numbers that look exactly like weak signal:
- Duty-cycle or rate throttling. A node configured to a 1% duty cycle will drop frames when the poll interval is shortened for the test. The PER rises with traffic, not with distance — a tell that the radio is fine. The same arithmetic is in TPUNB at 100 nodes.
- Backhaul loss counted as radio loss. If the gateway forwards over a cellular link and the tunnel drops, the application sees missing frames that never failed their CRC. Check the gateway's own log before blaming the air interface, and see cellular backhaul versus Ethernet.
- Detuned antenna. A wet pit or a mast bracket that shorts the whip shifts VSWR, and the transmitter folds back. The symptom is a PER that changes with weather and an RSSI that looks reasonable at the gateway because its own transmit path is unaffected. What kills a 470 MHz antenna in a meter pit covers the mechanical side.
RSSI alone will not separate these. The RSSI article makes the same point from the level side: a strong reading with a high error rate is an interference or a decoding problem, not a coverage problem.
What the twenty minutes cannot tell you
Three things are outside the reach of any single-node test:
- Capacity. One node at one frame per second says nothing about thirty nodes sharing the channel. Polling math is a separate calculation, and gateway capacity tables is where that starts.
- Seasonal change. Foliage, rain and new construction add loss after handover. A single dry-season pass at 0.5% is a starting point, not a guarantee.
- Interference growth. A shared 470 MHz band gains neighbours. The test measures today's noise floor; the interval stays valid only for the conditions logged with it.
None of this argues for a longer test. It argues for writing down what the test covered, so the number keeps its meaning when someone reads the sheet two years later.
FAQ
How many packets do I need to prove a 1% packet error rate?
There is no way to prove a rate exactly; you can only bound it. Zero failures in 300 frames gives a 95% upper bound of about 1.3% (1.0% by the rule of three), which is five minutes at a one-second poll and the cheapest credible pass. Counting failures instead of assuming none needs about 1,200 frames before the interval is narrow enough to act on, and about 2,300 per arm before two configurations can be compared at 1% versus 2%.
Should retries be on or off during the measurement?
Off, if the firmware allows it, because the raw CRC failure rate is the property of the radio link. If retries cannot be disabled, log both numbers: frames transmitted, frames delivered, and retransmissions. A delivered-error figure with retries on is an application metric, and it will look far better than the link actually is.
Can I use RSSI instead of counting errors?
No. RSSI is a level, not a result. Two links at the same RSSI can differ by an order of magnitude in PER if one is decoding against interference and the other against noise. Use RSSI to explain a PER result, never to replace it.
Why does PER change when I change the payload length?
Because the CRC covers the whole frame. At a bit error rate of 1×10⁻⁴, a 20-byte frame fails about 1.6% of the time and a 120-byte frame about 9.2%. Any PER quoted without a frame length, a symbol rate and a direction is not comparable with another vendor's number, and should not be written into a handover sheet.


