emmericp / MoonGen

MoonGen is a fully scriptable high-speed packet generator built on DPDK and LuaJIT. It can saturate a 10 Gbit/s connection with 64 byte packets on a single CPU core while executing user-provided Lua scripts for each packet. Multi-core support allows for even higher rates. It also features precise and accurate timestamping and rate control.
MIT License
1.03k stars 234 forks source link

replay pcaps at line rate #293

Open merveorakci12 opened 3 years ago

merveorakci12 commented 3 years ago

Hi, I can't replay pcaps at line rate.

root@lucky-X10SRA:/opt/MoonGen# ./build/MoonGen examples/pcap/replay-pcap.lua -r 0 1 2020-11-13-traffic-analysis-exercise.pcap -l [INFO] Initializing DPDK. This will take a few seconds... EAL: Detected 20 lcore(s) EAL: Probing VFIO support... EAL: PCI device 0000:02:00.0 on NUMA socket 0 EAL: probe driver: 8086:1528 net_ixgbe EAL: PCI device 0000:02:00.1 on NUMA socket 0 EAL: probe driver: 8086:1528 net_ixgbe EAL: PCI device 0000:06:00.0 on NUMA socket 0 EAL: probe driver: 8086:1533 net_e1000_igb EAL: PCI device 0000:07:00.0 on NUMA socket 0 EAL: probe driver: 8086:1533 net_e1000_igb [INFO] Found 2 usable devices: Device 0: AC:1F:6B:AB:99:F2 (Intel Corporation Ethernet Controller 10-Gigabit X540-AT2) Device 1: AC:1F:6B:AB:99:F3 (Intel Corporation Ethernet Controller 10-Gigabit X540-AT2) PMD: ixgbe_dev_link_status_print(): Port 1: Link Up - speed 0 Mbps - half-duplex [INFO] Waiting for devices to come up... [INFO] Device 1 (AC:1F:6B:AB:99:F3) is up: 10000 MBit/s [INFO] 1 device is up. [Device: id=1] TX: 2.97 Mpps, 9451 Mbit/s (9927 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9521 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9521 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9521 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9521 Mbit/s (10001 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9519 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9521 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9521 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9521 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9521 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9521 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing) [Device: id=1] TX: 3.00 Mpps, 9520 Mbit/s (10000 Mbit/s with framing)

My pcap file is downloaded form https://www.malware-traffic-analysis.net/training-exercises.html

Do you have any advice on this matter?