PacketSender icon indicating copy to clipboard operation
PacketSender copied to clipboard

[BUG] Stop button does not work on Intense Packet Generator tool

Open enski6 opened this issue 2 years ago • 7 comments

What OS and Version?

Windows 10 PacketSender version 8.3.6 Two computers hooked directly together with 10Gb fiber.

Description of issue

While using the Intense Packet Generator tool, setting the speed to 1250 MB/sec the Stop button does not work. In order to stop sending packets I have to close the application.

I am also only able to send packets at a max rate of about 230,000 packets/sec, how can one send at a higher rate?

Thanks

enski6 avatar Apr 25 '23 00:04 enski6

I can't recreate start/stop GUI problem on my end. I don't have 10G fiber though. Perhaps that level is what messes with the event loop.

There is a command line version that is able to run faster: https://github.com/dannagle/PacketSender#cliintensetraffic

You can give that one a try.

dannagle avatar Apr 25 '23 00:04 dannagle

Thanks, in using the CLI version I am only able to get around 90,000 packets/sec by setting the rate to 0. If I use the bps setting the most I could generate was about 1000 packets/sec.
packetsender --rate 0 --num 10000000 -u 192.168.2.100 12345 "hello"

enski6 avatar Apr 26 '23 00:04 enski6

That is odd it is actually slower. I will have to look into that. Can you launch multiple terminal windows with multiple instances running?

dannagle avatar Apr 26 '23 00:04 dannagle

Yes, I can open another instance and run them simultaneously. 2 instances produced about 150,000 packets/sec total based on Wireshark(packets/time).

enski6 avatar Apr 26 '23 00:04 enski6

That's good. That tells me I can solve this problem by creating additional threads to help with the sending.

Does it matter if the outgoing data is coming from multiple source ports? I can't use the same socket in multiple threads (well, not easily).

dannagle avatar Apr 26 '23 01:04 dannagle

Multiple ports are fine. We are just trying to max out packets/sec using small packets to simulate server load.

enski6 avatar Apr 26 '23 22:04 enski6

If you don't mind, will you email me at [email protected] ? I plan to create an alpha build for you to try out.

dannagle avatar Apr 27 '23 01:04 dannagle