This page covers the measurements that answer "does the link work, and how well". Each section says what the measurement proves and what it does not.
The byte-exact loopback#
The most direct proof that bytes cross the modem correctly: feed a known payload, capture what comes back, and compare.
head -c 65536 /dev/urandom > p.bin # a payload file (see the encoding below)
stellarlinkctl chain up --target pl-loopback --profile pl_loopback
stellarlinkctl datapath disable # the loopback command claims the modem itself
stellarlinkctl loopback --payload p.bin --blocks 4 --warmup 1 -o rx.binloopback arms the receiver first, feeds the payload continuously, collects --blocks blocks in
a row after discarding --warmup blocks, and compares. The same comparison can be repeated later,
on your computer:
stellarlinkctl compare rx.bin p.binThe payload file uses the modem's capture encoding: only the low byte of each 32-bit little-endian word is transmitted. A file of random bytes works as is (three bytes in four are ignored); to send a specific byte sequence, place each byte in the low byte of a 32-bit word.
The same measurement is available in the Web Console on the Bench page.
Reading the result#
The comparison is reported per block, not as a single figure: each block is aligned to the payload independently.
| Verdict | Meaning |
|---|---|
BytePerfect | Every block matched entirely |
Degraded | Every block correlates with the payload, some bytes differ |
NoCorrelation | At least one block does not correlate at all: no link, rather than a degraded one |
A slip is flagged separately when the alignment between consecutive blocks does not advance by exactly one block (a byte lost or inserted at a block boundary). It is not a demodulation error.
How to interpret errors:
- Errors only in the first 16 bytes of a block come from the block boundary not coinciding with a frame boundary. They are not a modem error.
- Errors concentrated in the first block and thinning out are the acquisition transient. Use
--warmup 1. - A short comparison window over-weights boundary errors. Compare whole captures rather than a few hundred bytes.
Make the measurement able to fail#
A loopback that passes is only meaningful if it could have failed. Two checks make it so:
- Check the path. For a measurement over the radio, run
stellarlinkctl chain statusand confirm the modem's internal loopback is off. A profile withradio.loopback: trueapplied after selecting the RF path turns an RF loopback back into an internal one, which always passes. - Make it fail once. Change only the RF level (for example, raise the TX attenuation to its maximum): the capture must stop. Restore it and the capture must come back.
Frame counters as instruments#
The transmitted and received frame counters (tx_frames, rx_frames, rx_frame_errors in the
telemetry and in every report sample) count what actually crossed the modem, whatever the sending
application believes it sent. They are the reliable throughput instrument: read them over a
timestamped interval during a continuous feed.
A receive frame counter that moves with zero errors proves frame synchronisation, not correct payload bytes: the attached sync marker is added by the modem after the payload, so the receiver can find it even when the payload is wrong. Use a byte comparison, or a transfer frame's FECF, to check the payload itself.
Sweeps as scenarios#
A sweep is a measurement: run it as a scenario, so that every
point shares the run's clock, traffic and telemetry, and the result lands in a report. A ramp
or a curve step varies a parameter over a time window while a traffic step keeps frames
flowing; windowed assertions then judge each part of the sweep separately.
The shipped scenarios include examples:
| Scenario | Measures |
|---|---|
impairments/channel_operations_sweep_v1.yaml | The five channel-emulator operations, each judged by windowed assertions |
impairments/leo_doppler_pass_v1.yaml | A LEO pass: Doppler and path-loss variation over the pass |
impairments/low_snr_reacquisition_v1.yaml | Reacquisition after a period of low SNR |
When reading a sweep, prefer slopes and internal states (a response that tracks the commanded change one for one, an AGC at its limit, a reading at its no-signal floor) over absolute levels: they do not depend on an RF calibration you may not have.
See Analysis & Reporting for reading the resulting reports.