Documentation chapters

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

StepAction
1Find the folder in Help › About Wireshark › Folders, row Personal Lua Plugins. Linux: ~/.local/lib/wireshark/plugins; Windows: %APPDATA%\Wireshark\plugins.
2Copy vortarian.lua into it.
3Restart Wireshark or press Ctrl+Shift+L.
4Check 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.

PurposeCommand
Check for lost datagrams: headers onlydumpcap -i <FO1 interface> -s 80 -f "udp dst port 10700" -a duration:5 -w fo1.pcapng
Look at samples: whole datagrams, short burstdumpcap -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:

CaptureStoredMissingDropped by dumpcapLost at the card
FO1, headers only, 5 s, four captures2 458 689500
FO1, whole datagrams, 1500 packets1500000
FO1 and FO2, whole datagrams, one dumpcap, about 1.3 s200 000111 361135 7330

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

FieldFilter nameContent
Linkvortarian.linkFO1: RX A, RX B or FO2: RX C, RX D
Flagsvortarian.flagsstatus byte; bits as vortarian.flags.fifo_full, .overrange_a to .overrange_d, .sysref_valid
Stream idvortarian.stream_idstream number
Sequence numbervortarian.seqdatagram counter of the stream
Timestampvortarian.timestamp250 MHz ticks at the first sample
Clock since SYSREFvortarian.clk_since_sysref250 MHz ticks
Sample ratevortarian.sample_rate250 MHz / decimation, in MS/s
Board timevortarian.stream_timetimestamp in seconds
Datagrams lostvortarian.lostnumber lost before this datagram
Samplesvortarian.i0, .q0, .i1, .q1signed 16-bit values of the listed sample groups
Peak levelvortarian.peak0, .peak1largest |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.

ColumnField
Seqvortarian.seq
Board time [s]vortarian.stream_time
Peak 1 [dBFS], Peak 2 [dBFS]vortarian.peak0, vortarian.peak1; needs the preference Compute peak levels
Lostvortarian.lost
Colouring ruleFilter
Strong signalvortarian.peak0 > -40 || vortarian.peak1 > -40
Lost datagramsvortarian.lost > 0
Wireshark packet list with sequence number, board time and peak level columns: the peak levels rise from −53 to −21 and −17 dBFS at one datagram, the following rows are coloured; below it the decoded datagram

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

FilterShows
vortarianall I/Q datagrams
vortarian.lost > 0datagrams after a gap, with the number lost
vortarian.link contains "FO2"the FO2 stream only
vortarian.flags.fifo_full == 1datagrams after samples were lost in the board
vortarian.flags & 0x1edatagrams with clipped ADC samples
vortarian.peak0 > -40datagrams in which the first channel of the link exceeds −40 dBFS
_ws.expert && vortarianeverything 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 inSign
the capture: the PC does not store the packets as fast as they arrivedumpcap 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 linkthe receive error counters of the card rise (ethtool -S <interface>: missed, CRC); see Host setup
the boardflag 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.

Wireshark with the display filter vortarian.lost > 0 on a capture that the PC could not store: every row is a datagram after a gap, with the number of lost datagrams in the Lost column, in the Info column and as expert information

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.

PreferenceFunction
UDP portsports decoded as VORTARIAN
Sample groups to showsamples listed per datagram, 8 by default, up to 1024
Compute peak levelsadds 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.