Hi,
Thank you for this discussion. I am also facing the same problem. I have an ISP PCAP traces and am trying to push the PCAP on linerate (i.e., 10 Gbps) to evaluate the performance behaviour of P4 based function running on programmable switch. AFAIK, there are two options in TRex to replay the PCAP, (1) local pcap push, where the file size is limited to 1Mb and can attach maximum 20000 streams to the port, which can be replayed many times with different multipliers or rate. , (2) server based push, where PCAP size can be unlimited, but rate of transmission is usually limited by I/O performance and buffering and we can modify the rate based on IPG.
What I already tried are :
1) Execute the following command, where I already set the location of ISP pcap, --ipg_usec default value 0.001 and --loop_count 10000
start -p 0 -f stl/pcap.py -m 100%
But, I can attach maximum 20000 streams to the port and the maximum rate can be achieved 2.5 Gbps.
2) In the 2nd option, I execute the following command:
push -r --port 0 -f xyz.pcap -i 0.001 -c 4
In this case, I can achieve maximum rate 1.75 Gbps.
Could you please suggest, how can I perform my tests on line rate (10 Gbps) using pre-captured ISP PCAP traces ?
Thank you.
-Suneet