Documentation Index

Fetch the complete documentation index at: https://docs.fmad.io/llms.txt

Use this file to discover all available pages before exploring further.

Calculating the Duration and average Data rate

Prev Next

It can be helpful to understand the time duration and average datarate of a capture.

Select a captured file using FMADIO CLI show capture list  ( https://docs4.fmad.io/docs/fmadiocli-configure-capture#show-capture-list )

fmadiocli "show capture list"

Example output below


fmadio@fmadio100v2-228U:~$ fmadiocli "show capture list"
fmad fmadlua Dec 10 2024 (/opt/fmadio/bin/fmadiolua --nocal /opt/fmadio/bin/fmadiocli show capture list )
Disable cycle calibration
[Fri Dec 20 11:46:25 2024] CmdLine [show capture list]
[Fri Dec 20 11:46:25 2024] Cmd [show capture list ]
[Fri Dec 20 11:46:25 2024] [test-upload_20241218_1459                                                       ]        1,373,634,560 B (Tue . 22:17:55 . 10-12-2024)
[Fri Dec 20 11:46:25 2024] [4x10G_at64B_20241202_1756                                                       ]        4,414,504,960 B (Mon . 17:56:39 . 02-12-2024)
[Fri Dec 20 11:46:25 2024] [l1_1x25G_compress_20241128_1351                                                 ]           12,582,912 B (Thu . 13:54:25 . 28-11-2024)
[Fri Dec 20 11:46:25 2024] [test_4x25_from_start_20241128_1325                                              ]          247,463,936 B (Thu . 13:26:27 . 28-11-2024)
[Fri Dec 20 11:46:25 2024] [sg2_20241127_2000                                                               ]   10,934,500,720,640 B (Wed . 20:17:16 . 27-11-2024)
[Fri Dec 20 11:46:25 2024] [sg2_20241127_1930                                                               ]   13,237,015,281,664 B (Wed . 19:59:39 . 27-11-2024)
[Fri Dec 20 11:46:25 2024] [teleco_20241218_1922                                                            ]      110,280,835,072 B (Fri . 21:08:03 . 06-10-2023)
[Fri Dec 20 11:46:25 2024] [euronext_20241219_1638                                                          ]       81,132,519,424 B (Thu . 20:00:01 . 03-08-2023)
[Fri Dec 20 11:46:25 2024] [interop17_20241218_1917                                                         ]        5,014,290,432 B (Fri . 21:40:10 . 09-06-2017)
done 0.126824Sec 0.002114Min
fmadio@fmadio100v2-228U:~$

In this case we are selecting interop17_20241218_1917 as the capture file to use

Then use the utility capinfos2 to calculate the statistics. This may take a while depending on the size of the capture.

  • <capture name> is the name of the capture to run analysis on

sudo stream_cat --chunked <capture name> | capinfos2 -v

Example output:

fmadio@fmadio100v2-228U:~$ sudo stream_cat --chunked interop17_20241218_1917 | capinfos2 -v
calibrating...
Chunked Packet output
stream_cat ioqueue: 4
calibrating...
0 : 2095066854           2.0951 cycles/nsec offset:4.933 Mhz
Cycles/Sec 2095066854.0000 Std:       0 cycle std(  0.00000000) Target:2.10 Ghz
0 : 2095070344           2.0951 cycles/nsec offset:4.930 Mhz
Cycles/Sec 2095070344.0000 Std:       0 cycle std(  0.00000000) Target:2.10 Ghz
StartChunkID: 43834728
StartChunk: 43834728 Offset: 0 Stride: 1
StartChunk: 43834728
FMAD Format Chunked
0.00GB    0.000 Gbps    0.000 Mpps SeqError:0
1.56GB   12.509 Gbps    1.370 Mpps SeqError:0
3.13GB   12.538 Gbps    1.367 Mpps SeqError:0
4.65GB   12.142 Gbps    1.305 Mpps SeqError:0
Chunk 43853856 StreamIndex Change: 1396 1395
no chunk. exiting
20241220_115003 4.311s : Pkt:4287993 Byte:649342360 SUCCESS
FMADHeader read fail: 0 48 : 0 Success
Total Packets: 4287993
TotalBytes     : 4931392897
TotalPackets   : 4287993
PayloadCRC     : 1ad36e19b7a03370
ErrorSeq       : 0
ErrorPktSize   : 0
LastByte       : 0x00000000
SeqStart       : 0x00000000 0x00000000 0x00000000 0x00000000 : 0x00000000
SeqEnd         : 0x00000000 0x00000000 0x00000000 0x00000000 : 0x00000000
PacketCnt      : 0 0 0 0
TimeOrder      : 0
CRCFail        : 0
CRCFailFNIC    : 0
Time First     : 20170609_213953 13:39:53.717.953.341 (1497015593.717953341)
Time Last      : 20170609_214009 13:40:09.050.025.079 (1497015609.050025079)
TotalPCAPTime  : 15332071738 ns (0.256min)
Bandwidth      : 2.573 Gbps
Packet Rate    : 0.280 Mpps
Complete
fmadio@fmadio100v2-228U:~$

In this case we can see the total time is 0.256min

TotalPCAPTime  : 15332071738 ns (0.256min)

Average data rate

Bandwidth      : 2.573 Gbps

Plus some other statistics that may be helpful

FMADIO Packet Capture systems