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.04k stars 234 forks source link

Invalid device number #259

Open shashankbr11 opened 4 years ago

shashankbr11 commented 4 years ago

The usage of this command shown below is giving me errors

sudo ./moongen-simple start "load-latency:0,1:rate=1000"

[ERROR] Invalid device number "0" for flow "load-latency" [ERROR] Invalid device number "1" for flow "load-latency" [ERROR] Invalid device number "rate=1000" for flow "load-latency" [ERROR] Need to pass at least one tx or rx device [ERROR] No valid flows remaining

Could you please guide me on the correct usage of the command? I wish to send traffic to multicores by repeating the 0,1 as mentioned in the git page. On lspci on my PC, I have found the device ID to be 02:00.0 and 02:00.1 for Intel 82599ES adapter and that is the one that I have bound by running the bind-interfaces.sh file. Can you please guide on the correct usage of this id or should I have to specify the interface names? What should be the syntax to specify a tx or rx device?

emmericp commented 4 years ago

Please post the full output.

shashankbr11 commented 4 years ago

The full output

[INFO] Initializing DPDK. This will take a few seconds... ERROR: This system does not support "SSE4_1". Please check that RTE_MACHINE is set correctly. EAL: FATAL: unsupported cpu type. EAL: unsupported cpu type. [INFO] Found 0 usable devices: [ERROR] Invalid device number "0" for flow "load-latency". [ERROR] Invalid device number "1" for flow "load-latency". [ERROR] Invalid device number "rate=1000" for flow "load-latency". [ERROR] Need to pass at least one tx or rx device. [ERROR] No valid flows remaining.

shashankbr11 commented 4 years ago

any observations based on my previous comment?

shashankbr11 commented 4 years ago

any updates regarding this issue.. any reply in this regard would be appreciated..

badr-bzh commented 4 years ago

try this : sudo ./moongen-simple start load-latency:0:1:rate=10Mp/s