· Updated · · VORTARIAN · 7 min read

Looking at the VORTARIAN I/Q Stream in Wireshark

Step by step: install the VORTARIAN dissector in Wireshark, capture the I/Q stream of the VORTARIAN 4R2T-10G and find lost datagrams.

Wireshark with a capture of FO1 of the VORTARIAN 4R2T-10G: the list of I/Q datagrams and one datagram decoded into its header, board time, peak levels and I/Q samples of RX A and RX B

The VORTARIAN 4R2T-10G sends its I/Q samples as UDP datagrams over two 10 GbE links. Wireshark shows them as plain UDP. With the VORTARIAN dissector, a small Lua file, Wireshark shows which link and channels a datagram belongs to, its header with the datagram number and the board time of its first sample, its I/Q samples, and the datagrams lost before it. This article shows how to install the dissector, capture the stream and read the result. We tested it with Wireshark 4.6.4 on Linux.

What you need

Step 1: Install Wireshark

  • Windows and macOS: download the installer from wireshark.org and run it. On Windows, let it install Npcap as well; without it Wireshark cannot capture.

  • Debian and Ubuntu:

    sudo apt install wireshark          # answer "Yes" to "Should non-superusers be able to capture packets?"
    sudo usermod -aG wireshark $USER    # then log out and log in again

Start Wireshark as your normal user, not with sudo. Wireshark does not load your own Lua plugins when it runs as root.

Step 2: Install the dissector

  1. In Wireshark, open Help › About Wireshark › Folders and find the row Personal Lua Plugins. It is usually %APPDATA%\Wireshark\plugins on Windows and ~/.local/lib/wireshark/plugins on Linux.
  2. Create that folder if it does not exist, and copy vortarian.lua into it.
  3. Restart Wireshark, or press Ctrl+Shift+L (Analyze › Reload Lua Plugins).
  4. Check that Help › About Wireshark › Plugins lists vortarian.lua.

On Linux, steps 2 and 3 are:

mkdir -p ~/.local/lib/wireshark/plugins
cp vortarian.lua ~/.local/lib/wireshark/plugins/

The dissector decodes UDP ports 10700 (FO1: RX A and RX B) and 10701 (FO2: RX C and RX D).

Step 3: Capture

The board sends only while the stream is on. Start it with debug on on the control port, TCP 5025, and stop it with debug off. In GNU Octave with the vortarian MEX file:

vortarian('cmd', 'debug on');     % the board starts sending on FO1 and FO2
% ... capture in Wireshark ...
vortarian('cmd', 'debug off');    % stop it: the stream keeps both links full

Another way: start the capture in Wireshark first, then run a program that reads the stream, for example the spectrogram script. Wireshark records what the program receives.

One link carries about 8.1 Gb/s, so a capture of whole datagrams writes about 1 GB to disk every second, and a PC soon starts to drop them. To check the stream, capture only the first 80 bytes of each datagram. They hold the whole datagram header: the datagram number, which is all the check for lost datagrams needs, and the board time.

In Wireshark:

  1. Capture › Options, tab Input: tick the interface connected to FO1.
  2. Double-click the Snaplen (B) column of that interface and enter 80.
  3. Enter the capture filter udp dst port 10700. For FO2, use the FO2 interface and port 10701.
  4. Tab Options: under Stop capture automatically after, tick 5 seconds.
  5. Click Start.

The same from the command line:

dumpcap -i <FO1 interface> -s 80 -f "udp dst port 10700" -a duration:5 -w fo1.pcapng

Our 5-second capture of FO1 holds 615 191 datagrams in 69 MB. It has one gap, 6 datagrams 0.13 ms after the start, and none after that. We see a gap like this at the start of most captures while the network card counts no loss; ignore a gap in the first milliseconds.

To look at the samples, capture whole datagrams, but only a short burst, and give the capture a large buffer: leave Snaplen (B) at default, set Buffer (MB) to 2048 (the default is 2 MB) and stop after 1500 packets. From the command line: dumpcap -i <FO1 interface> -B 2048 -c 1500 -w fo1-full.pcapng. We captured 1500 datagrams this way, 12.3 ms of signal, with none dropped.

Capture one link at a time. When we captured both links with one dumpcap, FO1 lost 830 datagrams and FO2 1, both about 8 ms after the start, and dumpcap reported 3059 and 1318 packets dropped. The network card counted no loss, so the PC lost them while writing the capture.

Step 4: Read the capture

Open the file with File › Open. The figure at the top of this article shows a capture of whole datagrams:

  • Packet list: the protocol is VORTARIAN, and the Info column shows the link, the stream number and the datagram number. A datagram that follows a gap shows [lost N].
  • Packet details: the line VORTARIAN I/Q stream opens to the link and its channels, the datagram header (what each field means), the sample rate, the board time of the first sample, and the first eight samples of both channels as I and Q. The samples are signed 16-bit numbers; full scale is 32768.
  • Time column: the time the PC received the frame. The network card hands frames over in bursts: frames 1 to 8 arrive within 0.45 µs, frame 9 at 26.1 µs. The signal timing is in the datagrams: each carries 1024 samples, 8.192 µs at 125 MS/s, and the board time of its first sample. The board time of consecutive datagrams grows by exactly 8.192 µs.

Type a display filter into the bar above the packet list and press Enter:

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
_ws.expert && vortarianeverything the dissector flagged

An empty list for vortarian.lost > 0 means no datagram was lost. Analyze › Expert Information lists the same gaps.

Wireshark with the display filter vortarian.lost > 0: two datagrams, one on FO2 after 1 lost datagram and one on FO1 after 830, and the header of the FO1 datagram

The capture of both links with one dumpcap, filtered with vortarian.lost > 0. The two gaps, 1 datagram on FO2 and 830 on FO1, came 8.2 and 8.8 ms after the start, while the network card counted no loss: the PC lost them during the capture. The capture keeps 80 bytes of each datagram: the whole header, and none of the 1024 sample groups. The empty part of the packet list is cut out.

Preferences

Right-click the VORTARIAN I/Q stream line in the packet details and open Protocol Preferences:

The context menu of the VORTARIAN line in Wireshark, with Protocol Preferences open: UDP ports, sample groups to show, compute peak levels

The preferences of the dissector: the UDP ports it decodes, the number of samples listed per datagram (8) and the peak levels, here turned on.

  • UDP ports: change them if your board sends to other ports.
  • Sample groups to show: how many samples of each datagram the details list. Up to 1024; long lists make Wireshark slow.
  • Compute peak levels: adds the largest magnitude |I + jQ| of each channel in the datagram, in dBFS against full scale 32768. It needs whole datagrams and makes opening a capture noticeably slower.

Packet details of one VORTARIAN datagram: the header, sample rate, board time, peak levels RX A −53.5 dBFS and RX B −55.8 dBFS, then the first eight samples

Datagram 124188 from FO1 with peak levels on: the largest sample in its 8.192 µs reaches −53.5 dBFS on RX A and −55.8 dBFS on RX B. Board time is the time of its first sample, 20.317 s on the board clock.

The fields of the datagram header are described in The VORTARIAN I/Q Datagram Header. How to set up the PC and capture contiguous blocks of all four channels is in Spectrogram of the VORTARIAN SDR in GNU Octave. Network cards and modules that carry both links are in Tested 10 GbE Network Cards, Switches and SFP+ Modules. For questions about the platform, contact us.

Written by

· Lead RF/FPGA engineer at JSE

Jiří has designed RF and signal-processing hardware and FPGA firmware since 2003, starting with receivers and signal-processing boards for radar systems. He holds a master's degree in radio engineering from the Czech Technical University in Prague.

LinkedInGitHubAbout JSE

Share:
Back to Blog