Closed badr-bzh closed 4 years ago
Another example, knowing that i hard written the MAC src and dst in the script:
user@debian:~/MoonGen$ sudo ./moongen-simple start tcp-syn-flood4:0:1:rate=1Mp/s
[INFO] Initializing DPDK. This will take a few seconds...-flood4:0:1:rate=1Mp/s
EAL: Detected 4 lcore(s)
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
EAL: PCI device 0000:01:01.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 1af4:1000 net_virtio
EAL: PCI device 0000:01:02.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 1af4:1000 net_virtio
EAL: PCI device 0000:01:03.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 1af4:1000 net_virtio
EAL: PCI device 0000:01:04.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 1af4:1000 net_virtio
[INFO] Found 4 usable devices:
Device 0: 52:54:00:0A:11:99 (Red Hat, Inc Virtio network device)
Device 1: 52:54:00:0A:11:9A (Red Hat, Inc Virtio network device)
Device 2: 52:54:00:0A:11:9B (Red Hat, Inc Virtio network device)
Device 3: 52:54:00:0A:11:9C (Red Hat, Inc Virtio network device)
[INFO] Flow tcp-syn-flood4 => 0x1
[INFO] Waiting for devices to come up...
[INFO] Device 1 (52:54:00:0A:11:9A) is up: 10000 MBit/s
[INFO] Device 0 (52:54:00:0A:11:99) is up: 10000 MBit/s
[INFO] 2 devices are up.
[Device: id=0] TX: 0.96 Mpps, 554 Mbit/s (708 Mbit/s with framing)
[Device: id=1] RX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Flow: dev=0 uid=0x1] TX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Device: id=0] TX: 0.99 Mpps, 570 Mbit/s (729 Mbit/s with framing)
[Device: id=1] RX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Flow: dev=0 uid=0x1] TX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Device: id=0] TX: 1.00 Mpps, 576 Mbit/s (736 Mbit/s with framing)
[Flow: dev=0 uid=0x1] TX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Device: id=1] RX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
^C[Flow: dev=0 uid=0x1] TX: 0.00 (StdDev 0.00) Mpps, 0 (StdDev 0) Mbit/s (0 Mbit/s with framing), total 0 packets with 0 bytes (incl. CRC)
[Device: id=0] TX: 1.00 (StdDev 0.01) Mpps, 573 (StdDev 4) Mbit/s (732 Mbit/s with framing), total 3772544 packets with 271623168 bytes (incl. CRC)
[Device: id=1] RX: 0.00 (StdDev 0.00) Mpps, 0 (StdDev 0) Mbit/s (0 Mbit/s with framing), total 0 packets with 0 bytes (incl. CRC)
user@debian:~/MoonGen$
VirtIO doesn't support counting packets without receiving them, so you need to actually receive and drop packets explicitly to count them, example: https://github.com/emmericp/MoonGen/blob/master/examples/device-statistics.lua#L179
This is obviously very unreliable and it's hard to distinguish between you dropping a packet and your DuT dropping a packet. It's usually not a good idea to run MoonGen on virtual NICs.
Hello,
I tried to execute the l2 and l3 latency-load examples, but I didn't receive anything in Rx device. Here is my output:
Do I need to hard write the Mac adresses manually in the scripts ?
Thanks for your efforts