How-to
Wireshark dissector
vortarian.lua decodes the I/Q datagrams on UDP ports 10700 (FO1) and 10701 (FO2): link and channels, the header, board time, samples, and the datagrams lost before each one. Source: host-tools/wireshark, MIT licence. Tested with Wireshark 4.6.4 on Linux.
Installation
| Step | Action |
|---|---|
| 1 | Find the folder in Help › About Wireshark › Folders, row Personal Lua Plugins. Linux: ~/.local/lib/wireshark/plugins; Windows: %APPDATA%\Wireshark\plugins. |
| 2 | Copy vortarian.lua into it. |
| 3 | Restart Wireshark or press Ctrl+Shift+L. |
| 4 | Check that Help › About Wireshark › Plugins lists vortarian.lua. |
Run Wireshark as a normal user. Wireshark started as root does not load personal Lua plugins.
Capture
One link carries 8.10 Gb/s; a capture of whole datagrams writes about 1 GB per second. Capture one link per dumpcap process.
| Purpose | Command |
|---|---|
| Check for lost datagrams: headers only | dumpcap -i <FO1 interface> -s 80 -f "udp dst port 10700" -a duration:5 -w fo1.pcapng |
| Look at samples: whole datagrams, short burst | dumpcap -i <FO1 interface> -B 2048 -c 1500 -w fo1-full.pcapng |
- 80 bytes per frame hold the whole 32-byte header. With 58 to 73 bytes the sequence numbers are still checked, the timestamp is not shown.
- The stream must be running (
debug on, see Board control), or start the capture before a program that reads the stream.
Measured on the test host, stream running before the capture starts:
| Capture | Stored | Missing | Dropped by dumpcap | Lost at the card |
|---|---|---|---|---|
| FO1, headers only, 5 s, four captures | 2 458 689 | 5 | 0 | 0 |
| FO1, whole datagrams, 1500 packets | 1500 | 0 | 0 | 0 |
FO1 and FO2, whole datagrams, one dumpcap, about 1.3 s | 200 000 | 111 361 | 135 733 | 0 |
Stored and missing are datagrams in the capture file; the card column is the change of the receive error counters of the network card. The first two captures are the commands above. The 5 missing datagrams are one gap about 0.13 ms after the start of one of the four captures. The third capture is one that the PC cannot store, 2 GB per second; see Lost datagrams.
Decoded fields
| Field | Filter name | Content |
|---|---|---|
| Link | vortarian.link | FO1: RX A, RX B or FO2: RX C, RX D |
| Flags | vortarian.flags | status byte; bits as vortarian.flags.fifo_full, .overrange_a to .overrange_d, .sysref_valid |
| Stream id | vortarian.stream_id | stream number |
| Sequence number | vortarian.seq | datagram counter of the stream |
| Timestamp | vortarian.timestamp | 250 MHz ticks at the first sample |
| Clock since SYSREF | vortarian.clk_since_sysref | 250 MHz ticks |
| Sample rate | vortarian.sample_rate | 250 MHz / decimation, in MS/s |
| Board time | vortarian.stream_time | timestamp in seconds |
| Datagrams lost | vortarian.lost | number lost before this datagram |
| Samples | vortarian.i0, .q0, .i1, .q1 | signed 16-bit values of the listed sample groups |
| Peak level | vortarian.peak0, .peak1 | largest |I + jQ| of each channel in the datagram, dBFS, in steps of 0.1 dB |
The Info column shows link, stream and sequence number, and the marks [lost N], [FIFO full], [overrange].
The Time column is the time the host received the frame. Network cards deliver frames in bursts; the signal timing is in the timestamp field.
Columns and colours
Any decoded field can be a column of the packet list: right-click the field in the packet details, Apply as Column. Colouring rules are set in View › Coloring Rules.
| Column | Field |
|---|---|
| Seq | vortarian.seq |
| Board time [s] | vortarian.stream_time |
| Peak 1 [dBFS], Peak 2 [dBFS] | vortarian.peak0, vortarian.peak1; needs the preference Compute peak levels |
| Lost | vortarian.lost |
| Colouring rule | Filter |
|---|---|
| Strong signal | vortarian.peak0 > -40 || vortarian.peak1 > -40 |
| Lost datagrams | vortarian.lost > 0 |
FO1 with these columns and rules, antennas on RX A and RX B. A transmission starts in datagram 125969, board time 87.140229 s: the peak level rises from −53 to −21.1 dBFS on RX A and from −55 to −17.4 dBFS on RX B. One datagram holds 1024 sample groups, 8.19 µs, so the packet list is a level record with that resolution. The first eight sample groups of the selected datagram are still small: the transmission starts later in the datagram.
Display filters
| Filter | Shows |
|---|---|
vortarian | all I/Q datagrams |
vortarian.lost > 0 | datagrams after a gap, with the number lost |
vortarian.link contains "FO2" | the FO2 stream only |
vortarian.flags.fifo_full == 1 | datagrams after samples were lost in the board |
vortarian.flags & 0x1e | datagrams with clipped ADC samples |
vortarian.peak0 > -40 | datagrams in which the first channel of the link exceeds −40 dBFS |
_ws.expert && vortarian | everything the dissector marked |
Lost datagrams
vortarian.lost is the step of the sequence number between two datagrams of one stream that follow each other in the capture file. It counts datagrams that are missing in the file; it does not say where they were lost.
| Lost in | Sign |
|---|---|
| the capture: the PC does not store the packets as fast as they arrive | dumpcap prints the number of dropped packets when it ends; the receive error counters of the network card do not change |
| the network card or the link | the receive error counters of the card rise (ethtool -S <interface>: missed, CRC); see Host setup |
| the board | flag FIFO full; the sequence numbers stay contiguous |
A capture made with the commands of the section Capture gives an empty list for vortarian.lost > 0, see the measurements there; a gap of a few datagrams in the first millisecond belongs to the start of the capture. Analyze › Expert Information lists the same gaps.
For the figure the loss was provoked: one dumpcap process wrote the whole datagrams of both links.
Loss provoked in the capture, not a loss of the board: whole datagrams of both links, 2 GB per second, written by one dumpcap process. Filter vortarian.lost > 0: 4145 of the first 60 000 datagrams follow a gap. dumpcap reported 135 733 dropped packets when it ended and the network cards counted no lost frame, so the datagrams reached the PC and were dropped there.
Preferences
Right-click the VORTARIAN I/Q stream line, Protocol Preferences.
| Preference | Function |
|---|---|
| UDP ports | ports decoded as VORTARIAN |
| Sample groups to show | samples listed per datagram, 8 by default, up to 1024 |
| Compute peak levels | adds the peak level of both channels; needs whole datagrams and slows the loading of a capture |
A capture decoded by the dissector is shown in I/Q datagram header.