Replay & Capture (Slow)

FMADIO can replay PCAP traffic at low speed while simultaneously capturing at full line rate. This can be very helpful for debugging or other troubleshooting and does not require changing the FPGA firmware from Capture to Replay mode. This Replay mode uses PIO (Programmed IO) who's bandwidth is quite low, and is not suitable for full high bandwidth packet relay. Usage is as follows

FMADIO20v3

Example command on the 20G Packet Capture system

/opt/fmadio/bin/stream_generate_f20 --replay

Example below pipes a PCAP previously captured on the device back down the the capture interfaces.

fmadio@fmadio20v2-149:~$ sudo stream_cat --ignore_fcs test64_20191004_1151 | sudo stream_generate_f20 --replay
Packet Gen: Sep 22 2019 01:05:06
stream_cat ioqueue: 4
SetAffinity: CPU 30 Index:16
StartChunkID: 8994
PCAP Nano
Replay Pkts:         1 Drop:         0 Total:0.000GB 0.396Gbps
Replay Pkts:    649312 Drop:         0 Total:0.042GB 0.332Gbps
Replay Pkts:   1299210 Drop:         0 Total:0.083GB 0.333Gbps
Replay Pkts:   1949573 Drop:         0 Total:0.125GB 0.333Gbps
Replay Pkts:   2599309 Drop:         0 Total:0.166GB 0.333Gbps
Replay Pkts:   3249180 Drop:         0 Total:0.208GB 0.333Gbps
Replay Pkts:   3899671 Drop:         0 Total:0.250GB 0.333Gbps
Replay Pkts:   4549914 Drop:         0 Total:0.291GB 0.333Gbps
Replay Pkts:   5199871 Drop:         0 Total:0.333GB 0.333Gbps
Replay Pkts:   5828751 Drop:         0 Total:0.373GB 0.332Gbps
Replay Pkts:   6478494 Drop:         0 Total:0.415GB 0.332Gbps
Replay Pkts:   7128289 Drop:         0 Total:0.456GB 0.332Gbps
Replay Pkts:   7777780 Drop:         0 Total:0.498GB 0.332Gbps
Replay Pkts:   8425123 Drop:         0 Total:0.539GB 0.332Gbps
Replay Pkts:   9074288 Drop:         0 Total:0.581GB 0.332Gbps
Replay Pkts:   9723647 Drop:         0 Total:0.622GB 0.332Gbps
Replay Pkts:  10379903 Drop:         0 Total:0.664GB 0.332Gbps
Replay Pkts:  11029807 Drop:         0 Total:0.706GB 0.332Gbps
Replay Pkts:  11679917 Drop:         0 Total:0.748GB 0.332Gbps
Replay Pkts:  12327988 Drop:         0 Total:0.789GB 0.332Gbps
Replay Pkts:  12977595 Drop:         0 Total:0.831GB 0.332Gbps
Replay Pkts:  13629543 Drop:         0 Total:0.872GB 0.332Gbps
Replay Pkts:  14285072 Drop:         0 Total:0.914GB 0.332Gbps
Replay Pkts:  14928107 Drop:         0 Total:0.955GB 0.332Gbps
Replay Pkts:  15575152 Drop:         0 Total:0.997GB 0.332Gbps
Replay Pkts:  16222518 Drop:         0 Total:1.038GB 0.332Gbps
Replay Pkts:  16871634 Drop:         0 Total:1.080GB 0.332Gbps
Replay Pkts:  17521499 Drop:         0 Total:1.121GB 0.332Gbps
Replay Pkts:  18177284 Drop:         0 Total:1.163GB 0.332Gbps
Replay Pkts:  18823901 Drop:         0 Total:1.205GB 0.332Gbps
Replay Pkts:  19472977 Drop:         0 Total:1.246GB 0.332Gbps
packet stream end
SUCCESS
STDIN Read fail: 0
Replay Pkts:  20000000 Drop:         0 Total:1.280GB 0.322Gbps
fmadio@fmadio20v2-149:~$

FMADIO100v2

For SKUs FMADIO100v2 and FMADIO40v3

You can pipe a PCAP from a local file system or use stream_cat to pipe from the capture system. Example below pipes from a previous captures.

The following example pipes a PCAP on the localfile system (/mnt/store0/tmp/imix.pcap) to replay the traffic

Last updated

Was this helpful?