One the massive benefits of a full line rate PCAP replay feature is, you can generate PCAPs at any speed, upload them to the FMAD Packet Replay Device and then replay them at any speed you required. There are many ways to generate PCAP files for replay, we will use our builtin utility pcap_genflow ( https://github.com/fmadio/pcap_genflow however many other tools such as tcpreplay, iperf3 and others which can output to a PCAP file for upload.
Typically when generating PCAP files the output is written to a linux pipe, the FMAD PCAP File upload function always reads PCAPs from stdin. The tool to upload PCAP into the FMAD capture system is stream_upload. The syntax is
Example of uploading the previously generated file flow_1M_IMIX_100G.pcap. PCAP can be scp to the device, or streamed over an SSH connection
Or this can be generated via on the FMADIO device itself, by piping the output of pcap_genflow directly to stream_upload
Replay PCAP File
Once the PCAP has been uploaded into the capture system, it can be replayed with various options as discussed here. It should be clear PCAP Generation + Upload + Replay is a powerful tool for any Network Engineer. If you have suggestions or questions feel free to contact us.
fmadio@fmadio100v2-228:$ sudo ./stream_upload --help
Stream Upload V3: Oct 4 2019 20:00:10
Stream Uploader V3
--------------------------
uploader always reads from stdin
stream_upload
--append-fcs : this appends an FCS to all packets
--name <stream_name> : set the uploaded capture name to stream_name
--verbose : prints basic statis as upload in progress
--slice <slice amount> : emulate packet slicing
--time-compress <scale> : how much to scale the input PCAPS timstamp
fmadio@fmadio100v2-228:/mnt/store0/develop_20191003_rc2/stream_upload$